public function ContentModeration::getEntityTypes in Drupal 9
Same name and namespace in other branches
- 8 core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php \Drupal\content_moderation\Plugin\WorkflowType\ContentModeration::getEntityTypes()
Gets the entity types the workflow is applied to.
Return value
string[] The entity types the workflow is applied to.
Overrides ContentModerationInterface::getEntityTypes
1 call to ContentModeration::getEntityTypes()
- ContentModeration::calculateDependencies in core/
modules/ content_moderation/ src/ Plugin/ WorkflowType/ ContentModeration.php - Calculates dependencies for the configured plugin.
File
- core/
modules/ content_moderation/ src/ Plugin/ WorkflowType/ ContentModeration.php, line 142
Class
- ContentModeration
- Attaches workflows to content entity types and their bundles.
Namespace
Drupal\content_moderation\Plugin\WorkflowTypeCode
public function getEntityTypes() {
return array_keys($this->configuration['entity_types']);
}