function CreatedWeek::get_formula

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

Overrides Formula::get_formula

File

drupal/core/modules/node/lib/Drupal/node/Plugin/views/argument/CreatedWeek.php, line 27
Definition of Drupal\node\Plugin\views\argument\CreatedWeek.

Class

CreatedWeek
Argument handler for a week.

Namespace

Drupal\node\Plugin\views\argument

Code

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