public function MonthDate::summaryArgument in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/argument/MonthDate.php \Drupal\views\Plugin\views\argument\MonthDate::summaryArgument()
Provide the argument to use to link from the summary to the next level; this will be called once per row of a summary, and used as part of $view->getUrl().
Parameters
$data: The query results for the row.
Overrides ArgumentPluginBase::summaryArgument
File
- core/
modules/ views/ src/ Plugin/ views/ argument/ MonthDate.php, line 43 - Contains \Drupal\views\Plugin\views\argument\MonthDate.
Class
- MonthDate
- Argument handler for a month (MM)
Namespace
Drupal\views\Plugin\views\argumentCode
public function summaryArgument($data) {
// Make sure the argument contains leading zeroes.
return str_pad($data->{$this->base_alias}, 2, '0', STR_PAD_LEFT);
}