DateFormatListBuilder::__construct

public DateFormatListBuilder::__construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, DateFormatterInterface $date_formatter)

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 $date_formatter: The date formatter service.

Overrides EntityListBuilder::__construct

File

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

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 $date_formatter) {
  parent::__construct($entity_type, $storage);

  $this->dateFormatter = $date_formatter;
}
doc_Drupal
2016-10-29 09:00:43
Comments
Leave a Comment

Please login to continue.