You are here

public function LingotekNoModerationHandler::isModerationEnabled in Lingotek Translation 3.1.x

Same name and namespace in other branches
  1. 8.2 src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::isModerationEnabled()
  2. 4.0.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::isModerationEnabled()
  3. 3.0.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::isModerationEnabled()
  4. 3.2.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::isModerationEnabled()
  5. 3.3.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::isModerationEnabled()
  6. 3.4.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::isModerationEnabled()
  7. 3.5.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::isModerationEnabled()
  8. 3.6.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::isModerationEnabled()
  9. 3.7.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::isModerationEnabled()
  10. 3.8.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::isModerationEnabled()

Checks if the moderation is enabled for this entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The content entity.

Return value

bool If moderation is enabled, returns TRUE. Returns FALSE otherwise.

Overrides LingotekModerationHandlerInterface::isModerationEnabled

File

src/Moderation/LingotekNoModerationHandler.php, line 48

Class

LingotekNoModerationHandler
Moderation handler when no other integration applies.

Namespace

Drupal\lingotek\Moderation

Code

public function isModerationEnabled(EntityInterface $entity) {
  return FALSE;
}