function TextCustom::render

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/area/TextCustom.php \Drupal\views\Plugin\views\area\TextCustom::render()
  2. 8.9.x core/modules/views/src/Plugin/views/area/TextCustom.php \Drupal\views\Plugin\views\area\TextCustom::render()
  3. 10 core/modules/views/src/Plugin/views/area/TextCustom.php \Drupal\views\Plugin\views\area\TextCustom::render()

Overrides AreaPluginBase::render

File

core/modules/views/src/Plugin/views/area/TextCustom.php, line 46

Class

TextCustom
Views area text handler.

Namespace

Drupal\views\Plugin\views\area

Code

public function render($empty = FALSE) {
    if (!$empty || !empty($this->options['empty'])) {
        return [
            '#markup' => $this->renderTextarea($this->options['content']),
        ];
    }
    return [];
}

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