You are here

protected static function TextFormat::elementInfo in Drupal 10

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

Wraps the element info service.

Return value

\Drupal\Core\Render\ElementInfoManagerInterface

1 call to TextFormat::elementInfo()
TextFormat::processFormat in core/modules/filter/src/Element/TextFormat.php
Expands an element into a base element with text format selector attached.

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');
}