You are here

public function Date::__toString in Views XML Backend 8

Same name in this branch
  1. 8 src/Plugin/views/filter/Date.php \Drupal\views_xml_backend\Plugin\views\filter\Date::__toString()
  2. 8 src/Plugin/views/argument/Date.php \Drupal\views_xml_backend\Plugin\views\argument\Date::__toString()

Generates an XPath argument string.

Return value

string The XPath argument string.

Overrides XmlArgumentInterface::__toString

3 methods override Date::__toString()
DayDate::__toString in src/Plugin/views/argument/DayDate.php
Generates an XPath argument string.
MonthDate::__toString in src/Plugin/views/argument/MonthDate.php
Generates an XPath argument string.
YearDate::__toString in src/Plugin/views/argument/YearDate.php
Generates an XPath argument string.

File

src/Plugin/views/argument/Date.php, line 70
Contains \Drupal\views_xml_backend\Plugin\views\argument\Date.

Class

Date
Date XML argument handler.

Namespace

Drupal\views_xml_backend\Plugin\views\argument

Code

public function __toString() {
  $xpath = $this->options['xpath_selector'];
  $format = Xpath::escapeXpathString($this->argFormat);
  $value = Xpath::escapeXpathString($this
    ->getValue());
  return "php:functionString('views_xml_backend_format_value', {$xpath}, {$format}) = {$value}";
}