You are here

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

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

2 methods override LingotekModerationHandlerInterface::shouldModerationPreventUpload()
LingotekContentModerationHandler::shouldModerationPreventUpload in src/Moderation/LingotekContentModerationHandler.php
Checks if we should prevent upload based on content moderation settings.
LingotekNoModerationHandler::shouldModerationPreventUpload in src/Moderation/LingotekNoModerationHandler.php
Checks if we should prevent upload based on content moderation settings.

File

src/Moderation/LingotekModerationHandlerInterface.php, line 24

Class

LingotekModerationHandlerInterface
Moderation handler managing the Lingotek integration.

Namespace

Drupal\lingotek\Moderation

Code

public function shouldModerationPreventUpload(EntityInterface $entity);