You are here

function EntityViewsData::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/EntityViewsData.php \Drupal\views\EntityViewsData::__construct()

Constructs an EntityViewsData object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type to provide views integration for.

\Drupal\Core\Entity\Sql\SqlEntityStorageInterface $storage_controller: The storage controller used for this entity type.

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\StringTranslation\TranslationInterface $translation_manager: The translation manager.

File

core/modules/views/src/EntityViewsData.php, line 79
Contains \Drupal\views\EntityViewsData.

Class

EntityViewsData
Provides generic views integration for entities.

Namespace

Drupal\views

Code

function __construct(EntityTypeInterface $entity_type, SqlEntityStorageInterface $storage_controller, EntityManagerInterface $entity_manager, ModuleHandlerInterface $module_handler, TranslationInterface $translation_manager) {
  $this->entityType = $entity_type;
  $this->entityManager = $entity_manager;
  $this->storage = $storage_controller;
  $this->moduleHandler = $module_handler;
  $this
    ->setStringTranslation($translation_manager);
}