public FilterFormatListBuilder::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.
Overrides ConfigEntityListBuilder::load
File
- core/modules/filter/src/FilterFormatListBuilder.php, line 69
Class
- FilterFormatListBuilder
- Defines a class to build a listing of filter format entities.
Namespace
Drupal\filter
Code
public function load() {
// Only list enabled filters.
return array_filter(parent::load(), function($entity) {
return $entity->status();
});
}
Please login to continue.