You are here

public function ViewsData::__construct in Workbench Moderation 8

Same name and namespace in other branches
  1. 8.2 src/ViewsData.php \Drupal\workbench_moderation\ViewsData::__construct()

Creates a new ViewsData instance.

Parameters

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

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

File

src/ViewsData.php, line 38

Class

ViewsData
Provides the workbench_moderation views integration.

Namespace

Drupal\workbench_moderation

Code

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