protected function ModerationDeriver::isCompatible in Workbench Moderation to Content Moderation 8.2
Determines if an entity type can be used by the derived plugin.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
Return value
bool TRUE if the entity type is compatible with the plugin; FALSE otherwise.
Overrides ContentEntityDeriver::isCompatible
1 call to ModerationDeriver::isCompatible()
- ModerationDeriver::getDerivativeDefinitions in src/
Plugin/ Deriver/ ModerationDeriver.php - Gets the definition of all derivatives of a base plugin.
File
- src/
Plugin/ Deriver/ ModerationDeriver.php, line 65
Class
Namespace
Drupal\wbm2cm\Plugin\DeriverCode
protected function isCompatible(EntityTypeInterface $entity_type) {
return parent::isCompatible($entity_type) && ($entity_type
->isRevisionable() && $entity_type
->isTranslatable() && in_array($entity_type
->id(), $this->entityTypes));
}