public function LingotekNoModerationHandler::shouldModerationPreventUpload in Lingotek Translation 3.1.x
Same name and namespace in other branches
- 8.2 src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::shouldModerationPreventUpload()
- 4.0.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::shouldModerationPreventUpload()
- 3.0.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::shouldModerationPreventUpload()
- 3.2.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::shouldModerationPreventUpload()
- 3.3.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::shouldModerationPreventUpload()
- 3.4.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::shouldModerationPreventUpload()
- 3.5.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::shouldModerationPreventUpload()
- 3.6.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::shouldModerationPreventUpload()
- 3.7.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler::shouldModerationPreventUpload()
- 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\ModerationCode
public function shouldModerationPreventUpload(EntityInterface $entity) {
return FALSE;
}