You are here

public function WidgetFormAlterEvent::setElement in Hook Event Dispatcher 8

Set the element.

Parameters

array $element: The element.

Deprecated

This is not needed anymore, use the element by reference.

File

src/Event/Form/WidgetFormAlterEvent.php, line 76

Class

WidgetFormAlterEvent
Class WidgetFormAlterEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Form

Code

public function setElement(array $element) {
  $this->element = $element;
}