function NodeTypeResourceTestBase::getExpectedNormalizedEntity
Returns the expected normalization of the entity.
Return value
array An array structure as returned by ::getExpectedNormalizedEntity().
Overrides EntityResourceTestBase::getExpectedNormalizedEntity
File
-
core/
modules/ node/ tests/ src/ Functional/ Rest/ NodeTypeResourceTestBase.php, line 58
Class
- NodeTypeResourceTestBase
- Resource test base for NodeType entity.
Namespace
Drupal\Tests\node\Functional\RestCode
protected function getExpectedNormalizedEntity() {
return [
'dependencies' => [],
'description' => 'Camelids are large, strictly herbivorous animals with slender necks and long legs.',
'display_submitted' => TRUE,
'help' => NULL,
'langcode' => 'en',
'name' => 'Camelids',
'new_revision' => TRUE,
'preview_mode' => 1,
'status' => TRUE,
'type' => 'camelids',
'uuid' => $this->entity
->uuid(),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.