You are here

public function OpenApiTestEntity::setName 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::setName()

Sets the OpenApi Test Entity name.

Parameters

string $name: The OpenApi Test Entity name.

Return value

\Drupal\openapi_test\Entity\OpenApiTestEntityInterface The called OpenApi Test Entity entity.

Overrides OpenApiTestEntityInterface::setName

File

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

Class

OpenApiTestEntity
Defines the OpenApi Test Entity.

Namespace

Drupal\openapi_test\Entity

Code

public function setName($name) {
  $this
    ->set('name', $name);
  return $this;
}