protected function WorkbenchEmailDeriver::isModeratableEntityType in Workbench Email 8
Same name and namespace in other branches
- 2.x src/Plugin/Derivative/WorkbenchEmailDeriver.php \Drupal\workbench_email\Plugin\Derivative\WorkbenchEmailDeriver::isModeratableEntityType()
Determines if an entity type has been marked as moderatable.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: An entity type object.
Return value
bool TRUE if this entity type has been marked as moderatable, FALSE otherwise.
1 call to WorkbenchEmailDeriver::isModeratableEntityType()
- WorkbenchEmailDeriver::getDerivativeDefinitions in src/
Plugin/ Derivative/ WorkbenchEmailDeriver.php - Gets the definition of all derivatives of a base plugin.
File
- src/
Plugin/ Derivative/ WorkbenchEmailDeriver.php, line 82
Class
- WorkbenchEmailDeriver
- Deriver to define a queue for each entity type.
Namespace
Drupal\workbench_email\Plugin\DerivativeCode
protected function isModeratableEntityType(EntityTypeInterface $entity_type) {
if (method_exists($this->moderationInfo, 'isModeratableEntityType')) {
return $this->moderationInfo
->isModeratableEntityType($entity_type);
}
else {
return $this->moderationInfo
->canModerateEntitiesOfEntityType($entity_type);
}
}