You are here

public function ViewsData::__construct in Plugin 8.2

Constructs a new instance.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

\Drupal\plugin\PluginType\PluginTypeManagerInterface: The plugin type manager.

File

src/ViewsData.php, line 50

Class

ViewsData
Provides/alters Views data.

Namespace

Drupal\plugin

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, PluginTypeManagerInterface $plugin_type_manager) {
  $this->entityFieldManager = $entity_field_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->pluginTypeManager = $plugin_type_manager;
}