You are here

function CreatedWeek::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/CreatedWeek.php, line 27
Definition of Views\node\Plugin\views\argument\CreatedWeek.

Class

CreatedWeek
Argument handler for a week.

Namespace

Views\node\Plugin\views\argument

Code

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