function Text::render

Render the area

Overrides AreaPluginBase::render

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/area/Text.php, line 52
Definition of Drupal\views\Plugin\views\area\Text.

Class

Text
Views area text handler.

Namespace

Drupal\views\Plugin\views\area

Code

function render($empty = FALSE) {
  $format = isset($this->options['format']) ? $this->options['format'] : filter_default_format();
  if (!$empty || !empty($this->options['empty'])) {
    return $this
      ->render_textarea($this->options['content'], $format);
  }
  return '';
}