class FullDate
Same name in this branch
- 9 core/modules/datetime/src/Plugin/views/argument/FullDate.php \Drupal\datetime\Plugin\views\argument\FullDate
Same name and namespace in other branches
- 11.x core/modules/views/src/Plugin/views/argument/FullDate.php \Drupal\views\Plugin\views\argument\FullDate
- 11.x core/modules/datetime/src/Plugin/views/argument/FullDate.php \Drupal\datetime\Plugin\views\argument\FullDate
Argument handler for a full date (CCYYMMDD)
Plugin annotation
@ViewsArgument("date_fulldate");
Hierarchy
- class \Drupal\Component\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait implements \Drupal\Component\Plugin\PluginBase
- class \Drupal\views\Plugin\views\PluginBase extends \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\views\Plugin\views\ViewsPluginInterface, \Drupal\Component\Plugin\DependentPluginInterface, \Drupal\Core\Security\TrustedCallbackInterface implements \Drupal\Core\Plugin\PluginBase
- class \Drupal\views\Plugin\views\HandlerBase extends \Drupal\views\Plugin\views\ViewsHandlerInterface implements \Drupal\views\Plugin\views\PluginBase
- class \Drupal\views\Plugin\views\argument\ArgumentPluginBase extends \Drupal\Core\Cache\CacheableDependencyInterface implements \Drupal\views\Plugin\views\HandlerBase
- class \Drupal\views\Plugin\views\argument\Formula implements \Drupal\views\Plugin\views\argument\ArgumentPluginBase
- class \Drupal\views\Plugin\views\argument\Date extends \Drupal\Core\Plugin\ContainerFactoryPluginInterface implements \Drupal\views\Plugin\views\argument\Formula
- class \Drupal\views\Plugin\views\argument\FullDate implements \Drupal\views\Plugin\views\argument\Date
- class \Drupal\views\Plugin\views\argument\Date extends \Drupal\Core\Plugin\ContainerFactoryPluginInterface implements \Drupal\views\Plugin\views\argument\Formula
- class \Drupal\views\Plugin\views\argument\Formula implements \Drupal\views\Plugin\views\argument\ArgumentPluginBase
- class \Drupal\views\Plugin\views\argument\ArgumentPluginBase extends \Drupal\Core\Cache\CacheableDependencyInterface implements \Drupal\views\Plugin\views\HandlerBase
- class \Drupal\views\Plugin\views\HandlerBase extends \Drupal\views\Plugin\views\ViewsHandlerInterface implements \Drupal\views\Plugin\views\PluginBase
- class \Drupal\views\Plugin\views\PluginBase extends \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\views\Plugin\views\ViewsPluginInterface, \Drupal\Component\Plugin\DependentPluginInterface, \Drupal\Core\Security\TrustedCallbackInterface implements \Drupal\Core\Plugin\PluginBase
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait implements \Drupal\Component\Plugin\PluginBase
Expanded class hierarchy of FullDate
File
-
core/
modules/ views/ src/ Plugin/ views/ argument/ FullDate.php, line 10
Namespace
Drupal\views\Plugin\views\argumentView source
class FullDate extends Date {
/**
* {@inheritdoc}
*/
protected $format = 'F j, Y';
/**
* {@inheritdoc}
*/
protected $argFormat = 'Ymd';
/**
* {@inheritdoc}
*/
public function summaryName($data) {
$created = $data->{$this->name_alias};
return $this->dateFormatter
->format(strtotime($created . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');
}
/**
* {@inheritdoc}
*/
public function title() {
return $this->dateFormatter
->format(strtotime($this->argument . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.