You are here

public function ProcessorListBuilder::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/ProcessorListBuilder.php, line 61

Class

ProcessorListBuilder
Defines a class to build a listing of prod check processor entities.

Namespace

Drupal\prod_check

Code

public function load() {
  $entities = parent::load();
  foreach ($entities as $entity) {
    if ($entity
      ->isConfigurable()) {
      $this->hasConfigurableProcessors = TRUE;
      continue;
    }
  }
  return $entities;
}