function ContentModeration::getEntityTypes

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

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 140

Class

ContentModeration
Attaches workflows to content entity types and their bundles.

Namespace

Drupal\content_moderation\Plugin\WorkflowType

Code

public function getEntityTypes() {
    return array_keys($this->configuration['entity_types']);
}

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