custom_field-1.0.x-dev/src/Plugin/views/argument/CustomFieldYearDate.php
src/Plugin/views/argument/CustomFieldYearDate.php
<?php
namespace Drupal\custom_field\Plugin\views\argument;
use Drupal\views\Attribute\ViewsArgument;
/**
* Argument handler for a year.
*/
#[ViewsArgument(
id: 'custom_field_datetime_year',
)]
class CustomFieldYearDate extends CustomFieldDate {
/**
* {@inheritdoc}
*/
protected $argFormat = 'Y';
}
