function DraggableListBuilder::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php \Drupal\Core\Config\Entity\DraggableListBuilder::__construct()
1 method overrides DraggableListBuilder::__construct()
- LanguageListBuilder::__construct in core/
modules/ language/ src/ LanguageListBuilder.php - Constructs a new LanguageListBuilder object.
File
-
core/
lib/ Drupal/ Core/ Config/ Entity/ DraggableListBuilder.php, line 47
Class
- DraggableListBuilder
- Defines a class to build a draggable listing of configuration entities.
Namespace
Drupal\Core\Config\EntityCode
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');
}
$this->limit = FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.