You are here

public function EntityOperations::__construct in Config Entity Revisions 8.2

Constructs a new EntityOperations object.

Parameters

\Drupal\content_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.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundle_info: The entity bundle information service.

\Drupal\Core\Routing\RouteBuilderInterface $router_builder: The router builder service.

File

src/EntityOperations.php, line 76

Class

EntityOperations
Defines a class for reacting to entity events.

Namespace

Drupal\config_entity_revisions

Code

public function __construct(ModerationInformationInterface $moderation_info, EntityTypeManagerInterface $entity_type_manager, FormBuilderInterface $form_builder, EntityTypeBundleInfoInterface $bundle_info, RouteBuilderInterface $router_builder) {
  $this->moderationInfo = $moderation_info;
  $this->entityTypeManager = $entity_type_manager;
  $this->formBuilder = $form_builder;
  $this->bundleInfo = $bundle_info;
  $this->routerBuilder = $router_builder;
}