public DraggableListBuilder::__construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage)
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
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\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'); } }
Please login to continue.