function EntityDisplayBaseMockableClass::getEntityType

Same name and namespace in other branches
  1. main core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php \Drupal\Tests\Core\Config\Entity\EntityDisplayBaseMockableClass::getEntityType()

Overrides EntityBase::getEntityType

File

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

Class

EntityDisplayBaseMockableClass
A class extending EntityDisplayBase for testing purposes.

Namespace

Drupal\Tests\Core\Config\Entity

Code

public function getEntityType() : EntityType {
  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.