class LingotekNoModerationHandler in Lingotek Translation 3.1.x
Same name and namespace in other branches
- 8.2 src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler
- 4.0.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler
- 3.0.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler
- 3.2.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler
- 3.3.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler
- 3.4.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler
- 3.5.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler
- 3.6.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler
- 3.7.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler
- 3.8.x src/Moderation/LingotekNoModerationHandler.php \Drupal\lingotek\Moderation\LingotekNoModerationHandler
Moderation handler when no other integration applies.
@package Drupal\lingotek\Moderation
Hierarchy
- class \Drupal\lingotek\Moderation\LingotekNoModerationHandler implements LingotekModerationHandlerInterface uses LingotekNoModerationCheckTrait
Expanded class hierarchy of LingotekNoModerationHandler
1 string reference to 'LingotekNoModerationHandler'
1 service uses LingotekNoModerationHandler
File
- src/
Moderation/ LingotekNoModerationHandler.php, line 13
Namespace
Drupal\lingotek\ModerationView source
class LingotekNoModerationHandler implements LingotekModerationHandlerInterface {
use LingotekNoModerationCheckTrait;
/**
* {@inheritdoc}
*/
public function shouldModerationPreventUpload(EntityInterface $entity) {
return FALSE;
}
/**
* {@inheritdoc}
*/
public function performModerationTransitionIfNeeded(ContentEntityInterface &$entity) {
// Do nothing.
}
/**
* {@inheritdoc}
*/
public function getModerationState(ContentEntityInterface $entity) {
// Do nothing.
}
/**
* {@inheritdoc}
*/
public function setModerationState(ContentEntityInterface $entity, $state) {
// Do nothing.
}
/**
* {@inheritdoc}
*/
public function isModerationEnabled(EntityInterface $entity) {
return FALSE;
}
}