function FormBase::elementInfoManager

The element info manager.

Return value

\Drupal\Core\Render\ElementInfoManagerInterface The element info manager.

File

core/lib/Drupal/Core/Form/FormBase.php, line 142

Class

FormBase
Provides a base class for forms.

Namespace

Drupal\Core\Form

Code

protected function elementInfoManager() : ElementInfoManagerInterface {
  if (!isset($this->elementInfoManager)) {
    $this->elementInfoManager = $this->container()
      ->get('plugin.manager.element_info');
  }
  return $this->elementInfoManager;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.