You are here

function CreatedYear::get_formula in Views (for Drupal 7) 8.3

Overrides Drupal\views\Plugin\views\argument\Formula::get_formula().

Overrides Formula::get_formula

File

lib/Views/node/Plugin/views/argument/CreatedYear.php, line 27
Definition of Views\node\Plugin\views\argument\CreatedYear.

Class

CreatedYear
Argument handler for a year (CCYY)

Namespace

Views\node\Plugin\views\argument

Code

function get_formula() {
  $this->formula = $this
    ->extractSQL('YEAR');
  return parent::get_formula();
}