You are here

public function CalendarHeader::renderTextField in Calendar 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/area/CalendarHeader.php \Drupal\calendar\Plugin\views\area\CalendarHeader::renderTextField()

Render a text area with \Drupal\Component\Utility\Xss::filterAdmin().

1 call to CalendarHeader::renderTextField()
CalendarHeader::render in src/Plugin/views/area/CalendarHeader.php
Render the area.

File

src/Plugin/views/area/CalendarHeader.php, line 92

Class

CalendarHeader
Views area Calendar Header area.

Namespace

Drupal\calendar\Plugin\views\area

Code

public function renderTextField($value) {
  if ($value) {
    return $this
      ->sanitizeValue($this
      ->tokenizeValue($value), 'xss_admin');
  }
  return '';
}