DateFormatterStub
extends DateFormatter
in package
A stub of the Drupal's default DateFormatter class.
@package TestHelpers\DrupalServiceStubs
Table of Contents
Methods
- __construct() : mixed
- {@inheritdoc}
- stubSetFormat() : mixed
- Sets the date format.
Methods
__construct()
{@inheritdoc}
public
__construct(EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager, TranslationInterface $translation, ConfigFactoryInterface $config_factory, RequestStack $request_stack) : mixed
Parameters
- $entity_type_manager : EntityTypeManagerInterface
- $language_manager : LanguageManagerInterface
- $translation : TranslationInterface
- $config_factory : ConfigFactoryInterface
- $request_stack : RequestStack
stubSetFormat()
Sets the date format.
public
stubSetFormat(mixed $name, mixed $label, mixed $pattern[, mixed $locked = 0 ]) : mixed
Parameters
- $name : mixed
- $label : mixed
- $pattern : mixed
- $locked : mixed = 0