protected function ImageStyleResourceTestBase::getExpectedNormalizedEntity in Drupal 9
Same name and namespace in other branches
- 8 core/modules/image/tests/src/Functional/Rest/ImageStyleResourceTestBase.php \Drupal\Tests\image\Functional\Rest\ImageStyleResourceTestBase::getExpectedNormalizedEntity()
- 10 core/modules/image/tests/src/Functional/Rest/ImageStyleResourceTestBase.php \Drupal\Tests\image\Functional\Rest\ImageStyleResourceTestBase::getExpectedNormalizedEntity()
Returns the expected normalization of the entity.
Return value
array
Overrides EntityResourceTestBase::getExpectedNormalizedEntity
See also
::createEntity()
File
- core/
modules/ image/ tests/ src/ Functional/ Rest/ ImageStyleResourceTestBase.php, line 74
Class
- ImageStyleResourceTestBase
- ResourceTestBase for ImageStyle entity.
Namespace
Drupal\Tests\image\Functional\RestCode
protected function getExpectedNormalizedEntity() {
return [
'dependencies' => [],
'effects' => [
$this->effectUuid => [
'uuid' => $this->effectUuid,
'id' => 'image_scale_and_crop',
'weight' => 0,
'data' => [
'anchor' => 'center-center',
'width' => 120,
'height' => 121,
],
],
],
'label' => 'Camelids',
'langcode' => 'en',
'name' => 'camelids',
'status' => TRUE,
'uuid' => $this->entity
->uuid(),
];
}