public function EntityOperations::__construct in Drupal 9
Same name in this branch
- 9 core/modules/content_moderation/src/EntityOperations.php \Drupal\content_moderation\EntityOperations::__construct()
- 9 core/modules/workspaces/src/EntityOperations.php \Drupal\workspaces\EntityOperations::__construct()
- 9 core/modules/views/src/Plugin/views/field/EntityOperations.php \Drupal\views\Plugin\views\field\EntityOperations::__construct()
Same name and namespace in other branches
- 8 core/modules/workspaces/src/EntityOperations.php \Drupal\workspaces\EntityOperations::__construct()
Constructs a new EntityOperations instance.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
\Drupal\workspaces\WorkspaceManagerInterface $workspace_manager: The workspace manager service.
\Drupal\workspaces\WorkspaceAssociationInterface $workspace_association: The workspace association service.
File
- core/
modules/ workspaces/ src/ EntityOperations.php, line 55
Class
- EntityOperations
- Defines a class for reacting to entity events.
Namespace
Drupal\workspacesCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, WorkspaceManagerInterface $workspace_manager, WorkspaceAssociationInterface $workspace_association) {
$this->entityTypeManager = $entity_type_manager;
$this->workspaceManager = $workspace_manager;
$this->workspaceAssociation = $workspace_association;
}