LingotekNoModerationCheckTrait.php in Lingotek Translation 4.0.x
Same filename and directory in other branches
- 8.2 src/Moderation/LingotekNoModerationCheckTrait.php
- 3.0.x src/Moderation/LingotekNoModerationCheckTrait.php
- 3.1.x src/Moderation/LingotekNoModerationCheckTrait.php
- 3.2.x src/Moderation/LingotekNoModerationCheckTrait.php
- 3.3.x src/Moderation/LingotekNoModerationCheckTrait.php
- 3.4.x src/Moderation/LingotekNoModerationCheckTrait.php
- 3.5.x src/Moderation/LingotekNoModerationCheckTrait.php
- 3.6.x src/Moderation/LingotekNoModerationCheckTrait.php
- 3.7.x src/Moderation/LingotekNoModerationCheckTrait.php
- 3.8.x src/Moderation/LingotekNoModerationCheckTrait.php
Namespace
Drupal\lingotek\ModerationFile
src/Moderation/LingotekNoModerationCheckTrait.phpView source
<?php
namespace Drupal\lingotek\Moderation;
use Drupal\Core\Extension\ModuleHandlerInterface;
/**
* Utility methods for all the 'noop' moderation services.
*
* @package Drupal\lingotek\Moderation
*/
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;
}
}
Traits
Name | Description |
---|---|
LingotekNoModerationCheckTrait | Utility methods for all the 'noop' moderation services. |