You are here

trait LingotekNoModerationCheckTrait in Lingotek Translation 3.5.x

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

Utility methods for all the 'noop' moderation services.

@package Drupal\lingotek\Moderation

Hierarchy

File

src/Moderation/LingotekNoModerationCheckTrait.php, line 12

Namespace

Drupal\lingotek\Moderation
View source
trait LingotekNoModerationCheckTrait {

  /**
   * The module handler service.
   *
   * @var \Drupal\Core\Extension\ModuleHandlerInterface
   */
  protected $moduleHandler;

  /**
   * {@inheritdoc}
   */
  public function applies() {
    return TRUE;
  }

  /**
   * {@inheritdoc}
   */
  public function setModuleHandler(ModuleHandlerInterface $module_handler) {
    $this->moduleHandler = $module_handler;
    return $this;
  }

}

Members