public function ConfigPagesListBuilder::load in Config Pages 8.3
Same name and namespace in other branches
- 8 src/ConfigPagesListBuilder.php \Drupal\config_pages\ConfigPagesListBuilder::load()
- 8.2 src/ConfigPagesListBuilder.php \Drupal\config_pages\ConfigPagesListBuilder::load()
Loads entities of this type from storage for listing.
This allows the implementation to manipulate the listing, like filtering or sorting the loaded entities.
Return value
\Drupal\Core\Entity\EntityInterface[] An array of entities implementing \Drupal\Core\Entity\EntityInterface indexed by their IDs. Returns an empty array if no matching entities are found.
Overrides EntityListBuilder::load
File
- src/
ConfigPagesListBuilder.php, line 154
Class
- ConfigPagesListBuilder
- Defines a class to build a listing of custom config_pages entities.
Namespace
Drupal\config_pagesCode
public function load() {
$entity_ids = $this
->getEntityIds();
return $this->cpt_storage
->loadMultiple($entity_ids);
}