function VocabularyResourceTestBase::getExpectedNormalizedEntity
Same name in other branches
- 9 core/modules/taxonomy/tests/src/Functional/Rest/VocabularyResourceTestBase.php \Drupal\Tests\taxonomy\Functional\Rest\VocabularyResourceTestBase::getExpectedNormalizedEntity()
- 8.9.x core/modules/taxonomy/tests/src/Functional/Rest/VocabularyResourceTestBase.php \Drupal\Tests\taxonomy\Functional\Rest\VocabularyResourceTestBase::getExpectedNormalizedEntity()
- 11.x core/modules/taxonomy/tests/src/Functional/Rest/VocabularyResourceTestBase.php \Drupal\Tests\taxonomy\Functional\Rest\VocabularyResourceTestBase::getExpectedNormalizedEntity()
Overrides EntityResourceTestBase::getExpectedNormalizedEntity
File
-
core/
modules/ taxonomy/ tests/ src/ Functional/ Rest/ VocabularyResourceTestBase.php, line 50
Class
Namespace
Drupal\Tests\taxonomy\Functional\RestCode
protected function getExpectedNormalizedEntity() {
return [
'uuid' => $this->entity
->uuid(),
'vid' => 'llama',
'langcode' => 'en',
'status' => TRUE,
'dependencies' => [],
'name' => 'Llama',
'description' => NULL,
'weight' => 0,
'new_revision' => FALSE,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.