function RulesUiHandlerTrait::getRulesUiHandler
Gets the rules UI handler of the current route.
Return value
\Drupal\rules\Ui\RulesUiHandlerInterface|null The handler, or NULL if this is no rules_ui enabled route.
File
-
src/
Ui/ RulesUiHandlerTrait.php, line 27
Class
- RulesUiHandlerTrait
- Trait for getting the rules_ui_handler attribute of the current request.
Namespace
Drupal\rules\UiCode
public function getRulesUiHandler() {
if (!isset($this->rulesUiHandler)) {
$this->rulesUiHandler = \Drupal::request()->attributes
->get('rules_ui_handler');
}
return $this->rulesUiHandler;
}