You are here

private function Update330::isModerationEnabled in Lightning Workflow 8.3

Checks if moderation is enabled for content items.

Return value

bool TRUE if moderation is enabled for content items, FALSE otherwise.

1 call to Update330::isModerationEnabled()
Update330::fixModerationHistory in src/Update/Update330.php
Fixes timestamp and author references in the Moderation History view.

File

src/Update/Update330.php, line 150

Class

Update330
Contains optional updates targeting Lightning Workflow 3.3.0.

Namespace

Drupal\lightning_workflow\Update

Code

private function isModerationEnabled() {
  $entity_type = $this->entityTypeManager
    ->getDefinition('node');
  return $this->moderationInformation
    ->isModeratedEntityType($entity_type);
}