You are here

public function FormEnhancerBase::setFormDisplay in Flexiform 8

Set the form display object.

Parameters

\Drupal\flexiform\FlexiformEntityFormDisplayInterface $form_display: The form display.

Return value

\Drupal\flexiform\FormEnhancer\FormEnhancerInterface The form enhancer with the form display set. (For chaining).

Overrides FormEnhancerInterface::setFormDisplay

File

src/FormEnhancer/FormEnhancerBase.php, line 30

Class

FormEnhancerBase
Base class for form enhancers.

Namespace

Drupal\flexiform\FormEnhancer

Code

public function setFormDisplay(FlexiformEntityFormDisplayInterface $form_display) {
  $this->formDisplay = $form_display;
  return $this;
}