function StubEntityStorageBase::createInstance

Overrides EntityHandlerInterface::createInstance

File

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

Class

StubEntityStorageBase
A stub base entity storage for testing purposes.

Namespace

Drupal\Tests\Core\Entity

Code

public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
    return new static();
}

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