You are here

public function ContentModeration::getEntityTypes in Drupal 8

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()

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 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']);
}