trait LingotekContentModerationCheckTrait in Lingotek Translation 3.3.x
Same name and namespace in other branches
- 8.2 src/Moderation/LingotekContentModerationCheckTrait.php \Drupal\lingotek\Moderation\LingotekContentModerationCheckTrait
- 4.0.x src/Moderation/LingotekContentModerationCheckTrait.php \Drupal\lingotek\Moderation\LingotekContentModerationCheckTrait
- 3.0.x src/Moderation/LingotekContentModerationCheckTrait.php \Drupal\lingotek\Moderation\LingotekContentModerationCheckTrait
- 3.1.x src/Moderation/LingotekContentModerationCheckTrait.php \Drupal\lingotek\Moderation\LingotekContentModerationCheckTrait
- 3.2.x src/Moderation/LingotekContentModerationCheckTrait.php \Drupal\lingotek\Moderation\LingotekContentModerationCheckTrait
- 3.4.x src/Moderation/LingotekContentModerationCheckTrait.php \Drupal\lingotek\Moderation\LingotekContentModerationCheckTrait
- 3.5.x src/Moderation/LingotekContentModerationCheckTrait.php \Drupal\lingotek\Moderation\LingotekContentModerationCheckTrait
- 3.6.x src/Moderation/LingotekContentModerationCheckTrait.php \Drupal\lingotek\Moderation\LingotekContentModerationCheckTrait
- 3.7.x src/Moderation/LingotekContentModerationCheckTrait.php \Drupal\lingotek\Moderation\LingotekContentModerationCheckTrait
- 3.8.x src/Moderation/LingotekContentModerationCheckTrait.php \Drupal\lingotek\Moderation\LingotekContentModerationCheckTrait
Utility methods for all the 'content_moderation' moderation services.
@package Drupal\lingotek\Moderation
Hierarchy
- trait \Drupal\lingotek\Moderation\LingotekContentModerationCheckTrait
File
- src/
Moderation/ LingotekContentModerationCheckTrait.php, line 12
Namespace
Drupal\lingotek\ModerationView source
trait LingotekContentModerationCheckTrait {
/**
* The module handler service.
*
* @var \Drupal\Core\Extension\ModuleHandlerInterface
*/
protected $moduleHandler;
/**
* {@inheritdoc}
*/
public function applies() {
return $this->moduleHandler
->moduleExists('content_moderation');
}
/**
* {@inheritdoc}
*/
public function setModuleHandler(ModuleHandlerInterface $module_handler) {
$this->moduleHandler = $module_handler;
return $this;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LingotekContentModerationCheckTrait:: |
protected | property | The module handler service. | |
LingotekContentModerationCheckTrait:: |
public | function | ||
LingotekContentModerationCheckTrait:: |
public | function |