function EntityViewsData::__construct
Same name and namespace in other branches
- 11.x core/modules/views/src/EntityViewsData.php \Drupal\views\EntityViewsData::__construct()
- 10 core/modules/views/src/EntityViewsData.php \Drupal\views\EntityViewsData::__construct()
- 9 core/modules/views/src/EntityViewsData.php \Drupal\views\EntityViewsData::__construct()
- 8.9.x core/modules/views/src/EntityViewsData.php \Drupal\views\EntityViewsData::__construct()
Constructs an EntityViewsData object.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entityType: The entity type to provide views integration for.
\Drupal\Core\Entity\Sql\SqlEntityStorageInterface $storage: The storage handler used for this entity type.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.
\Drupal\Core\StringTranslation\TranslationInterface $translation_manager: The translation manager.
\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: The entity field manager.
1 method overrides EntityViewsData::__construct()
- NodeViewsData::__construct in core/
modules/ node/ src/ NodeViewsData.php - Constructs an NodeViewsData object.
File
-
core/
modules/ views/ src/ EntityViewsData.php, line 50
Class
- EntityViewsData
- Provides generic views integration for entities.
Namespace
Drupal\viewsCode
public function __construct(protected EntityTypeInterface $entityType, protected SqlEntityStorageInterface $storage, protected EntityTypeManagerInterface $entityTypeManager, protected ModuleHandlerInterface $moduleHandler, TranslationInterface $translation_manager, protected EntityFieldManagerInterface $entityFieldManager) {
$this->setStringTranslation($translation_manager);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.