You are here

class LingotekNoModerationHandler in Lingotek Translation 3.8.x

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

Moderation handler when no other integration applies.

@package Drupal\lingotek\Moderation

Hierarchy

Expanded class hierarchy of LingotekNoModerationHandler

1 string reference to 'LingotekNoModerationHandler'
lingotek.services.yml in ./lingotek.services.yml
lingotek.services.yml
1 service uses LingotekNoModerationHandler
lingotek.no_moderation_handler in ./lingotek.services.yml
Drupal\lingotek\Moderation\LingotekNoModerationHandler

File

src/Moderation/LingotekNoModerationHandler.php, line 13

Namespace

Drupal\lingotek\Moderation
View 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;
  }

}

Members