You are here

protected function ImageStyleResourceTestBase::getExpectedNormalizedEntity in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/image/tests/src/Functional/Rest/ImageStyleResourceTestBase.php \Drupal\Tests\image\Functional\Rest\ImageStyleResourceTestBase::getExpectedNormalizedEntity()
  2. 9 core/modules/image/tests/src/Functional/Rest/ImageStyleResourceTestBase.php \Drupal\Tests\image\Functional\Rest\ImageStyleResourceTestBase::getExpectedNormalizedEntity()

File

core/modules/image/tests/src/Functional/Rest/ImageStyleResourceTestBase.php, line 74

Class

ImageStyleResourceTestBase
ResourceTestBase for ImageStyle entity.

Namespace

Drupal\Tests\image\Functional\Rest

Code

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(),
  ];
}