You are here

public function FormWidgetManagerTrait::setFormWidgetManager in Typed Data API enhancements 8

Sets the widget manager.

Parameters

\Drupal\typed_data\Widget\FormWidgetManagerInterface $widgetManager: The widget manager.

Return value

$this

File

src/Widget/FormWidgetManagerTrait.php, line 25

Class

FormWidgetManagerTrait
Helper to access the form widget manager service.

Namespace

Drupal\typed_data\Widget

Code

public function setFormWidgetManager(FormWidgetManagerInterface $widgetManager) {
  $this->widgetManager = $widgetManager;
  return $this;
}