You are here

public function StateChangeDeriver::__construct in Workbench Moderation Actions 8

Creates a new StateChangeDeriver instance.

Parameters

\Drupal\workbench_moderation\ModerationInformationInterface $moderationInformation: The ModerationInformationInterface.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The EntityTypeManagerInterface.

File

src/Plugin/Deriver/StateChangeDeriver.php, line 41

Class

StateChangeDeriver
Derives which moderation states are available.

Namespace

Drupal\workbench_moderation_actions\Plugin\Deriver

Code

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