function 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(protected readonly EntityTypeManagerInterface $entityTypeManager, protected readonly ?WorkspaceAssociationInterface $workspaceAssociation) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.