You are here

public function FormEnhancerBase::applies in Flexiform 8

Whether this enhancer applies to a particular event.

Parameters

string $event: The enhancer event name.

Return value

bool True if the enhancer applies to a particular event.

Overrides FormEnhancerInterface::applies

1 call to FormEnhancerBase::applies()
ConfigurableFormEnhancerBase::applies in src/FormEnhancer/ConfigurableFormEnhancerBase.php
Whether this enhancer applies to a particular event.
2 methods override FormEnhancerBase::applies()
ConfigurableFormEnhancerBase::applies in src/FormEnhancer/ConfigurableFormEnhancerBase.php
Whether this enhancer applies to a particular event.
WizardParameters::applies in contrib/wizard/src/Plugin/FormEnhancer/WizardParameters.php
Whether this enhancer applies to a particular event.

File

src/FormEnhancer/FormEnhancerBase.php, line 48

Class

FormEnhancerBase
Base class for form enhancers.

Namespace

Drupal\flexiform\FormEnhancer

Code

public function applies($event) {
  return in_array($event, $this->supportedEvents);
}