function EntityDisplayBaseMockableClass::getEntityType

Overrides EntityBase::getEntityType

File

core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php, line 96

Class

EntityDisplayBaseMockableClass
A class extending EntityDisplayBase for testing purposes.

Namespace

Drupal\Tests\Core\Config\Entity

Code

public function getEntityType() {
  return new EntityType([
    'id' => 'entity_view_display',
    'entity_keys' => [
      'id' => 'id',
    ],
  ]);
}

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