You are here

public function EntityOperations::__construct in Workbench Moderation 8.2

Same name and namespace in other branches
  1. 8 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.

File

src/EntityOperations.php, line 62

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) {
  $this->moderationInfo = $moderation_info;
  $this->entityTypeManager = $entity_type_manager;
  $this->eventDispatcher = $event_dispatcher;
  $this->formBuilder = $form_builder;
  $this->tracker = $tracker;
}