function ViewsData::__construct

Same name in this branch
  1. 8.9.x core/modules/views/src/ViewsData.php \Drupal\views\ViewsData::__construct()
Same name in other branches
  1. 9 core/modules/content_moderation/src/ViewsData.php \Drupal\content_moderation\ViewsData::__construct()
  2. 9 core/modules/views/src/ViewsData.php \Drupal\views\ViewsData::__construct()
  3. 10 core/modules/content_moderation/src/ViewsData.php \Drupal\content_moderation\ViewsData::__construct()
  4. 10 core/modules/views/src/ViewsData.php \Drupal\views\ViewsData::__construct()
  5. 11.x core/modules/content_moderation/src/ViewsData.php \Drupal\content_moderation\ViewsData::__construct()
  6. 11.x core/modules/views/src/ViewsData.php \Drupal\views\ViewsData::__construct()

Creates a new ViewsData instance.

Parameters

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

\Drupal\content_moderation\ModerationInformationInterface $moderation_information: The moderation information.

File

core/modules/content_moderation/src/ViewsData.php, line 40

Class

ViewsData
Provides the content_moderation views integration.

Namespace

Drupal\content_moderation

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ModerationInformationInterface $moderation_information) {
    $this->entityTypeManager = $entity_type_manager;
    $this->moderationInformation = $moderation_information;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.