public DraggableListBuilder::__construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage)
Constructs a new EntityListBuilder object.
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.
Overrides EntityListBuilder::__construct
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'); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Entity!DraggableListBuilder.php/function/DraggableListBuilder::__construct/8.1.x