function TextFormat::elementInfo

Same name and namespace in other branches
  1. 9 core/modules/filter/src/Element/TextFormat.php \Drupal\filter\Element\TextFormat::elementInfo()
  2. 8.9.x core/modules/filter/src/Element/TextFormat.php \Drupal\filter\Element\TextFormat::elementInfo()
  3. 10 core/modules/filter/src/Element/TextFormat.php \Drupal\filter\Element\TextFormat::elementInfo()

Wraps the element info service.

Return value

\Drupal\Core\Render\ElementInfoManagerInterface

File

core/modules/filter/src/Element/TextFormat.php, line 308

Class

TextFormat
Provides a text format render element.

Namespace

Drupal\filter\Element

Code

protected static function elementInfo() {
    return \Drupal::service('element_info');
}

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