You are here

public function ActionListBuilder::load in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/action/src/ActionListBuilder.php \Drupal\action\ActionListBuilder::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/action/src/ActionListBuilder.php, line 67
Contains \Drupal\action\ActionListBuilder.

Class

ActionListBuilder
Defines a class to build a listing of action entities.

Namespace

Drupal\action

Code

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