function StubEntityStorageBase::has

Overrides EntityStorageBase::has

File

core/tests/Drupal/Tests/Core/Entity/StubEntityStorageBase.php, line 34

Class

StubEntityStorageBase
A stub base entity storage for testing purposes.

Namespace

Drupal\Tests\Core\Entity

Code

protected function has($id, EntityInterface $entity) : bool {
    return FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.