protected function EntityViewDisplayResourceTestBase::getExpectedNormalizedEntity in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/FunctionalTests/Rest/EntityViewDisplayResourceTestBase.php \Drupal\FunctionalTests\Rest\EntityViewDisplayResourceTestBase::getExpectedNormalizedEntity()
- 9 core/tests/Drupal/FunctionalTests/Rest/EntityViewDisplayResourceTestBase.php \Drupal\FunctionalTests\Rest\EntityViewDisplayResourceTestBase::getExpectedNormalizedEntity()
1 method overrides EntityViewDisplayResourceTestBase::getExpectedNormalizedEntity()
- LayoutBuilderEntityViewDisplayResourceTestBase::getExpectedNormalizedEntity in core/
modules/ layout_builder/ tests/ src/ Functional/ Rest/ LayoutBuilderEntityViewDisplayResourceTestBase.php - Returns the expected normalization of the entity.
File
- core/
tests/ Drupal/ FunctionalTests/ Rest/ EntityViewDisplayResourceTestBase.php, line 64
Class
Namespace
Drupal\FunctionalTests\RestCode
protected function getExpectedNormalizedEntity() {
return [
'bundle' => 'camelids',
'content' => [
'links' => [
'region' => 'content',
'weight' => 100,
'settings' => [],
'third_party_settings' => [],
],
],
'dependencies' => [
'config' => [
'node.type.camelids',
],
'module' => [
'user',
],
],
'hidden' => [],
'id' => 'node.camelids.default',
'langcode' => 'en',
'mode' => 'default',
'status' => TRUE,
'targetEntityType' => 'node',
'uuid' => $this->entity
->uuid(),
];
}