LingotekNoModerationHandler.php in Lingotek Translation 3.1.x
Same filename and directory in other branches
- 8.2 src/Moderation/LingotekNoModerationHandler.php
- 4.0.x src/Moderation/LingotekNoModerationHandler.php
- 3.0.x src/Moderation/LingotekNoModerationHandler.php
- 3.2.x src/Moderation/LingotekNoModerationHandler.php
- 3.3.x src/Moderation/LingotekNoModerationHandler.php
- 3.4.x src/Moderation/LingotekNoModerationHandler.php
- 3.5.x src/Moderation/LingotekNoModerationHandler.php
- 3.6.x src/Moderation/LingotekNoModerationHandler.php
- 3.7.x src/Moderation/LingotekNoModerationHandler.php
- 3.8.x src/Moderation/LingotekNoModerationHandler.php
Namespace
Drupal\lingotek\ModerationFile
src/Moderation/LingotekNoModerationHandler.phpView source
<?php
namespace Drupal\lingotek\Moderation;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\EntityInterface;
/**
* Moderation handler when no other integration applies.
*
* @package Drupal\lingotek\Moderation
*/
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;
}
}
Classes
Name | Description |
---|---|
LingotekNoModerationHandler | Moderation handler when no other integration applies. |