You are here

public function LingotekNoModerationHandler::shouldModerationPreventUpload in Lingotek Translation 3.0.x

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

Checks if we should prevent upload based on content moderation settings.

Parameters

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

Return value

bool Returns TRUE if we should prevent the upload based on content moderation.

Overrides LingotekModerationHandlerInterface::shouldModerationPreventUpload

File

src/Moderation/LingotekNoModerationHandler.php, line 20

Class

LingotekNoModerationHandler
Moderation handler when no other integration applies.

Namespace

Drupal\lingotek\Moderation

Code

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