function Time::__construct
Same name in this branch
- 11.1.x vendor/ramsey/uuid/src/Type/Time.php \Ramsey\Uuid\Type\Time::__construct()
- 11.1.x vendor/symfony/validator/Constraints/Time.php \Symfony\Component\Validator\Constraints\Time::__construct()
- 11.1.x core/lib/Drupal/Component/Datetime/Time.php \Drupal\Component\Datetime\Time::__construct()
Constructs a Time cache plugin object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
Overrides PluginBase::__construct
File
-
core/
modules/ views/ src/ Plugin/ views/ cache/ Time.php, line 51
Class
- Time
- Simple caching of query results for Views displays.
Namespace
Drupal\views\Plugin\views\cacheCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, DateFormatterInterface $date_formatter, TimeInterface $time) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->dateFormatter = $date_formatter;
}