You are here

public function StateChange::__construct in Workbench Moderation Actions 8

Same name in this branch
  1. 8 src/Controller/StateChange.php \Drupal\workbench_moderation_actions\Controller\StateChange::__construct()
  2. 8 src/Plugin/Action/StateChange.php \Drupal\workbench_moderation_actions\Plugin\Action\StateChange::__construct()

File

src/Controller/StateChange.php, line 36

Class

StateChange
Performs the state change, if user has access to do it.

Namespace

Drupal\workbench_moderation_actions\Controller

Code

public function __construct(ModerationInformationInterface $moderationInformation, StateTransitionValidation $validation) {
  $this->moderationInfo = $moderationInformation;
  $this->validation = $validation;
}