You are here

public function FlexiformEntityFormDisplay::getFormEnhancer in Flexiform 8

Get a particular form enhancer.

Parameters

string $enhancer_name: The form enhancer name.

Return value

\Drupal\flexiform\FormEnhancer\FormEnhancerInterface The form enhancer.

File

src/FlexiformEntityFormDisplay.php, line 551

Class

FlexiformEntityFormDisplay
Defines a class to extend EntityFormDisplays.

Namespace

Drupal\flexiform

Code

public function getFormEnhancer($enhancer_name) {
  if (empty($this->formEnhancers)) {
    $this
      ->getFormEnhancers();
  }
  return isset($this->formEnhancers[$enhancer_name]) ? $this->formEnhancers[$enhancer_name] : NULL;
}