You are here

public function WizardParameters::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 FormEnhancerBase::applies

File

contrib/wizard/src/Plugin/FormEnhancer/WizardParameters.php, line 20

Class

WizardParameters
Plugin for adding Wizard Parameters into the Flexiform entity manager.

Namespace

Drupal\flexiform_wizard\Plugin\FormEnhancer

Code

public function applies($event) {
  if ($event != 'init_form_entity_config') {
    return FALSE;
  }
  return substr($this
    ->getFormDisplay()
    ->id(), 0, 17) == 'flexiform_wizard.';
}