function DateFormatListBuilder::__construct

Same name in other branches
  1. 9 core/modules/system/src/DateFormatListBuilder.php \Drupal\system\DateFormatListBuilder::__construct()
  2. 8.9.x core/modules/system/src/DateFormatListBuilder.php \Drupal\system\DateFormatListBuilder::__construct()
  3. 10 core/modules/system/src/DateFormatListBuilder.php \Drupal\system\DateFormatListBuilder::__construct()

Constructs a new DateFormatListBuilder object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.

\Drupal\Core\Datetime\DateFormatterInterface $dateFormatter: The date formatter service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

Overrides EntityListBuilder::__construct

File

core/modules/system/src/DateFormatListBuilder.php, line 32

Class

DateFormatListBuilder
Defines a class to build a listing of date format entities.

Namespace

Drupal\system

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, DateFormatterInterface $dateFormatter, TimeInterface $time) {
    parent::__construct($entity_type, $storage);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.