YearDate.php

Same filename in this branch
  1. 8.9.x core/modules/datetime/src/Plugin/views/argument/YearDate.php
Same filename in other branches
  1. 9 core/modules/views/src/Plugin/views/argument/YearDate.php
  2. 9 core/modules/datetime/src/Plugin/views/argument/YearDate.php
  3. 10 core/modules/views/src/Plugin/views/argument/YearDate.php
  4. 10 core/modules/datetime/src/Plugin/views/argument/YearDate.php
  5. 11.x core/modules/views/src/Plugin/views/argument/YearDate.php
  6. 11.x core/modules/datetime/src/Plugin/views/argument/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.