function NodeViewsData::createInstance
Overrides EntityViewsData::createInstance
File
-
core/
modules/ node/ src/ NodeViewsData.php, line 58
Class
- NodeViewsData
- Provides the views data for the node entity type.
Namespace
Drupal\nodeCode
public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
return new static($entity_type, $container->get('entity_type.manager')
->getStorage($entity_type->id()), $container->get('entity_type.manager'), $container->get('module_handler'), $container->get('string_translation'), $container->get('entity_field.manager'), $container->get('extension.list.module'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.