You are here

public function OpenApiTestEntity::getName in OpenAPI 8

Same name and namespace in other branches
  1. 8.2 tests/modules/openapi_test/src/Entity/OpenApiTestEntity.php \Drupal\openapi_test\Entity\OpenApiTestEntity::getName()

Gets the OpenApi Test Entity name.

Return value

string Name of the OpenApi Test Entity.

Overrides OpenApiTestEntityInterface::getName

File

tests/modules/openapi_test/src/Entity/OpenApiTestEntity.php, line 48

Class

OpenApiTestEntity
Defines the OpenApi Test Entity.

Namespace

Drupal\openapi_test\Entity

Code

public function getName() {
  return $this
    ->get('name')->value;
}