You are here

protected function SubmitButtonRules::rulesStorage in Flexiform 8

Get the rules storage handler.

Return value

\Drupal\Core\Entity\EntityStorageInterface The entity storage for the rules component.

File

contrib/rules/src/Plugin/FormEnhancer/SubmitButtonRules.php, line 70

Class

SubmitButtonRules
A flexiform enhancer to trigger rules on submission.

Namespace

Drupal\flexiform_rules\Plugin\FormEnhancer

Code

protected function rulesStorage() {
  return $this->entityTypeManager
    ->getStorage('rules_component');
}