You are here

public function ModerationInformationInterface::selectRevisionableEntities in Workbench Moderation 8

Same name and namespace in other branches
  1. 8.2 src/ModerationInformationInterface.php \Drupal\workbench_moderation\ModerationInformationInterface::selectRevisionableEntities()

Filters an entity list to just the definitions for moderatable entities.

An entity type is moderatable only if it is both revisionable and bundable.

Parameters

\Drupal\Core\Entity\EntityTypeInterface[] $entity_types: The master entity type list filter.

Return value

\Drupal\Core\Entity\ContentEntityTypeInterface[] An array of only the content entity definitions we want to modify.

1 method overrides ModerationInformationInterface::selectRevisionableEntities()
ModerationInformation::selectRevisionableEntities in src/ModerationInformation.php
Filters an entity list to just the definitions for moderatable entities.

File

src/ModerationInformationInterface.php, line 85

Class

ModerationInformationInterface
Interface for moderation_information service.

Namespace

Drupal\workbench_moderation

Code

public function selectRevisionableEntities(array $entity_types);