You are here

public function DraggableListBuilder::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php \Drupal\Core\Config\Entity\DraggableListBuilder::__construct()

Constructs a new EntityListBuilder object.

Parameters

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

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

Overrides EntityListBuilder::__construct

3 calls to DraggableListBuilder::__construct()
FilterFormatListBuilder::__construct in core/modules/filter/src/FilterFormatListBuilder.php
Constructs a new FilterFormatListBuilder.
LanguageListBuilder::__construct in core/modules/language/src/LanguageListBuilder.php
Constructs a new LanguageListBuilder object.
SearchPageListBuilder::__construct in core/modules/search/src/SearchPageListBuilder.php
Constructs a new SearchPageListBuilder object.
3 methods override DraggableListBuilder::__construct()
FilterFormatListBuilder::__construct in core/modules/filter/src/FilterFormatListBuilder.php
Constructs a new FilterFormatListBuilder.
LanguageListBuilder::__construct in core/modules/language/src/LanguageListBuilder.php
Constructs a new LanguageListBuilder object.
SearchPageListBuilder::__construct in core/modules/search/src/SearchPageListBuilder.php
Constructs a new SearchPageListBuilder object.

File

core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php, line 52
Contains \Drupal\Core\Config\Entity\DraggableListBuilder.

Class

DraggableListBuilder
Defines a class to build a draggable listing of configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage) {
  parent::__construct($entity_type, $storage);

  // Check if the entity type supports weighting.
  if ($this->entityType
    ->hasKey('weight')) {
    $this->weightKey = $this->entityType
      ->getKey('weight');
  }
}