public function Text::render in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/area/Text.php \Drupal\views\Plugin\views\area\Text::render()
Render the area.
Parameters
bool $empty: (optional) Indicator if view result is empty or not. Defaults to FALSE.
Return value
array In any case we need a valid Drupal render array to return.
Overrides AreaPluginBase::render
File
- core/
modules/ views/ src/ Plugin/ views/ area/ Text.php, line 54 - Contains \Drupal\views\Plugin\views\area\Text.
Class
- Text
- Views area text handler.
Namespace
Drupal\views\Plugin\views\areaCode
public function render($empty = FALSE) {
$format = isset($this->options['content']['format']) ? $this->options['content']['format'] : filter_default_format();
if (!$empty || !empty($this->options['empty'])) {
return array(
'#type' => 'processed_text',
'#text' => $this
->tokenizeValue($this->options['content']['value']),
'#format' => $format,
);
}
return array();
}