You are here

public function EntityOperations::__construct in Workbench Moderation 8

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

Constructs a new EntityOperations object.

Parameters

\Drupal\workbench_moderation\ModerationInformationInterface $moderation_info: Moderation information service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager service.

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\workbench_moderation\RevisionTrackerInterface $tracker: The revision tracker.

\Drupal\Core\Session\AccountInterface $current_user: The current user service.

File

src/EntityOperations.php, line 80

Class

EntityOperations
Defines a class for reacting to entity events.

Namespace

Drupal\workbench_moderation

Code

public function __construct(ModerationInformationInterface $moderation_info, EntityTypeManagerInterface $entity_type_manager, FormBuilderInterface $form_builder, EventDispatcherInterface $event_dispatcher, RevisionTrackerInterface $tracker, AccountInterface $current_user) {
  $this->moderationInfo = $moderation_info;
  $this->entityTypeManager = $entity_type_manager;
  $this->eventDispatcher = $event_dispatcher;
  $this->formBuilder = $form_builder;
  $this->tracker = $tracker;
  $this->currentUser = $current_user;
}