function DraggableListBuilder::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php \Drupal\Core\Config\Entity\DraggableListBuilder::__construct()
  2. 10 core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php \Drupal\Core\Config\Entity\DraggableListBuilder::__construct()
  3. 11.x core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php \Drupal\Core\Config\Entity\DraggableListBuilder::__construct()

Overrides EntityListBuilder::__construct

5 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.
RoleListBuilder::__construct in core/modules/user/src/RoleListBuilder.php
RoleListBuilder constructor.
SearchPageListBuilder::__construct in core/modules/search/src/SearchPageListBuilder.php
Constructs a new SearchPageListBuilder object.
VocabularyListBuilder::__construct in core/modules/taxonomy/src/VocabularyListBuilder.php
Constructs a new VocabularyListBuilder object.
5 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.
RoleListBuilder::__construct in core/modules/user/src/RoleListBuilder.php
RoleListBuilder constructor.
SearchPageListBuilder::__construct in core/modules/search/src/SearchPageListBuilder.php
Constructs a new SearchPageListBuilder object.
VocabularyListBuilder::__construct in core/modules/taxonomy/src/VocabularyListBuilder.php
Constructs a new VocabularyListBuilder object.

File

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

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');
    }
}

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