function 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\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.