public function CheckListBuilder::load in Production check & Production monitor 8
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 ConfigEntityListBuilder::load
File
- src/
CheckListBuilder.php, line 61
Class
- CheckListBuilder
- Defines a class to build a listing of prod check processor entities.
Namespace
Drupal\prod_checkCode
public function load() {
$entities = parent::load();
foreach ($entities as $entity) {
if ($entity
->isConfigurable()) {
$this->hasConfigurableChecks = TRUE;
continue;
}
}
return $entities;
}