You are here

public function ProcessedText::getInfo in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/filter/src/Element/ProcessedText.php \Drupal\filter\Element\ProcessedText::getInfo()

Returns the element properties for this element.

Return value

array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.

Overrides ElementInterface::getInfo

File

core/modules/filter/src/Element/ProcessedText.php, line 23

Class

ProcessedText
Provides a processed text render element.

Namespace

Drupal\filter\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#text' => '',
    '#format' => NULL,
    '#filter_types_to_skip' => [],
    '#langcode' => '',
    '#pre_render' => [
      [
        $class,
        'preRenderText',
      ],
    ],
  ];
}