You are here

public function UnitTestBase::entityStorageLoadMultiple in Entity Construction Kit (ECK) 8

Callback for entity storage load multiple.

File

tests/src/Unit/UnitTestBase.php, line 177

Class

UnitTestBase
Base class for unit tests.

Namespace

Drupal\Tests\eck\Unit

Code

public function entityStorageLoadMultiple($id = '') {
  if (!empty($id)) {
    return $this->entities[$id];
  }
  else {
    return $this->entities;
  }
}