YearDate.php

Namespace

Drupal\datetime\Plugin\views\argument

File

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

View source
<?php

namespace Drupal\datetime\Plugin\views\argument;


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

}

Classes

Title Deprecated Summary
YearDate Argument handler for a year.

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