function ProcessedText::getInfo

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

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 = static::class;
    return [
        '#text' => '',
        '#format' => NULL,
        '#filter_types_to_skip' => [],
        '#langcode' => '',
        '#pre_render' => [
            [
                $class,
                'preRenderText',
            ],
        ],
    ];
}

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