You are here

function CreatedDay::summary_argument in Views (for Drupal 7) 8.3

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::summary_argument

File

lib/Views/node/Plugin/views/argument/CreatedDay.php, line 50
Definition of Views\node\Plugin\views\argument\CreatedDay.

Class

CreatedDay
Argument handler for a day (DD)

Namespace

Views\node\Plugin\views\argument

Code

function summary_argument($data) {

  // Make sure the argument contains leading zeroes.
  return str_pad($data->{$this->base_alias}, 2, '0', STR_PAD_LEFT);
}