You are here

public function FormHelper::__construct in Lightning Core 8.5

FormHelper constructor.

Parameters

\Drupal\Core\Render\ElementInfoManagerInterface $element_info: The element info plugin manager.

File

src/FormHelper.php, line 25

Class

FormHelper
Provides helper methods for working with forms and form elements.

Namespace

Drupal\lightning_core

Code

public function __construct(ElementInfoManagerInterface $element_info) {
  @trigger_error(__CLASS__ . ' is deprecated in lightning_core:8.x-5.6 and will be removed in lightning_core:8.x-6.0. Use \\Drupal\\Core\\Render\\ElementInfoManagerInterface::getInfo() instead. See https://www.drupal.org/node/3156221', E_USER_DEPRECATED);
  $this->elementInfo = $element_info;
}