class YearDate

Same name in this branch
  1. 9 core/modules/datetime/src/Plugin/views/argument/YearDate.php \Drupal\datetime\Plugin\views\argument\YearDate
Same name and namespace in other branches
  1. 11.x core/modules/views/src/Plugin/views/argument/YearDate.php \Drupal\views\Plugin\views\argument\YearDate
  2. 11.x core/modules/datetime/src/Plugin/views/argument/YearDate.php \Drupal\datetime\Plugin\views\argument\YearDate

Argument handler for a year (CCYY)

Plugin annotation

@ViewsArgument("date_year");

Hierarchy

Expanded class hierarchy of YearDate

File

core/modules/views/src/Plugin/views/argument/YearDate.php, line 10

Namespace

Drupal\views\Plugin\views\argument
View source
class YearDate extends Date {
  
  /**
   * {@inheritdoc}
   */
  protected $argFormat = 'Y';

}

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