You are here

function Text::render in Views (for Drupal 7) 8.3

Render the area

Overrides AreaPluginBase::render

1 method overrides Text::render()
TextCustom::render in lib/Drupal/views/Plugin/views/area/TextCustom.php
Render the area

File

lib/Drupal/views/Plugin/views/area/Text.php, line 99
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 '';
}