YearDate.php

Namespace

Drupal\views\Plugin\views\argument

File

core/modules/views/src/Plugin/views/argument/YearDate.php

View source
<?php

namespace Drupal\views\Plugin\views\argument;


/**
 * Argument handler for a year (CCYY)
 *
 * @ViewsArgument("date_year")
 */
class YearDate extends Date {
  
  /**
   * {@inheritdoc}
   */
  protected $argFormat = 'Y';

}

Classes

Title Deprecated Summary
YearDate Argument handler for a year (CCYY)

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.