You are here

public function ConfigEntityStorageDecorator::loadByProperties in Devel 8.3

Same name and namespace in other branches
  1. 8 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::loadByProperties()
  2. 8.2 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::loadByProperties()
  3. 4.x webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::loadByProperties()

Load entities by their property values.

Parameters

array $values: An associative array where the keys are the property names and the values are the values those properties must have.

Return value

\Drupal\Core\Entity\EntityInterface[] An array of entity objects indexed by their ids.

Overrides EntityStorageInterface::loadByProperties

File

webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php, line 82

Class

ConfigEntityStorageDecorator
Class ConfigEntityStorageDecorator.

Namespace

Drupal\webprofiler\Entity\Decorators\Config

Code

public function loadByProperties(array $values = []) {
  $entities = $this
    ->getOriginalObject()
    ->loadByProperties($values);
  $this->entities = array_merge($this->entities, $entities);
  return $entities;
}