You are here

public function ModerationDeriver::__construct in Workbench Moderation to Content Moderation 8.2

EntityModerationStateDeriver constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

string[] $entity_types: The moderatable entity type IDs.

Overrides ContentEntityDeriver::__construct

File

src/Plugin/Deriver/ModerationDeriver.php, line 27

Class

ModerationDeriver

Namespace

Drupal\wbm2cm\Plugin\Deriver

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, array $entity_types) {
  parent::__construct($entity_type_manager);
  $this->entityTypes = $entity_types;
}