function WorkspaceSubscriber::__construct
Same name in other branches
- 11.x core/modules/content_moderation/src/EventSubscriber/WorkspaceSubscriber.php \Drupal\content_moderation\EventSubscriber\WorkspaceSubscriber::__construct()
Constructs a new WorkspaceSubscriber instance.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager service.
\Drupal\workspaces\WorkspaceAssociationInterface|null $workspaceAssociation: The workspace association service.
File
-
core/
modules/ content_moderation/ src/ EventSubscriber/ WorkspaceSubscriber.php, line 25
Class
- WorkspaceSubscriber
- Checks whether a workspace is publishable, and prevents publishing if needed.
Namespace
Drupal\content_moderation\EventSubscriberCode
public function __construct(EntityTypeManagerInterface $entityTypeManager, ?WorkspaceAssociationInterface $workspaceAssociation) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.