function ContentModeration::getBundlesForEntityType

Same name and namespace in other branches
  1. 8.9.x core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php \Drupal\content_moderation\Plugin\WorkflowType\ContentModeration::getBundlesForEntityType()
  2. 10 core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php \Drupal\content_moderation\Plugin\WorkflowType\ContentModeration::getBundlesForEntityType()
  3. 11.x core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php \Drupal\content_moderation\Plugin\WorkflowType\ContentModeration::getBundlesForEntityType()

Overrides ContentModerationInterface::getBundlesForEntityType

3 calls to ContentModeration::getBundlesForEntityType()
ContentModeration::appliesToEntityTypeAndBundle in core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php
Checks if the workflow applies to the supplied entity type and bundle.
ContentModeration::calculateDependencies in core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php
Calculates dependencies for the configured plugin.
ContentModeration::onDependencyRemoval in core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php
Informs the plugin that a dependency of the workflow will be deleted.

File

core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php, line 149

Class

ContentModeration
Attaches workflows to content entity types and their bundles.

Namespace

Drupal\content_moderation\Plugin\WorkflowType

Code

public function getBundlesForEntityType($entity_type_id) {
    return $this->configuration['entity_types'][$entity_type_id] ?? [];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.