function TextFormat::getInfo

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

Overrides ElementInterface::getInfo

File

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

Class

TextFormat
Provides a text format render element.

Namespace

Drupal\filter\Element

Code

public function getInfo() {
    $class = get_class($this);
    return [
        '#process' => [
            [
                $class,
                'processFormat',
            ],
        ],
        '#base_type' => 'textarea',
        '#theme_wrappers' => [
            'text_format_wrapper',
        ],
    ];
}

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