function ImageStyleResourceTestBase::getExpectedNormalizedEntity

Same name in other branches
  1. 9 core/modules/image/tests/src/Functional/Rest/ImageStyleResourceTestBase.php \Drupal\Tests\image\Functional\Rest\ImageStyleResourceTestBase::getExpectedNormalizedEntity()
  2. 10 core/modules/image/tests/src/Functional/Rest/ImageStyleResourceTestBase.php \Drupal\Tests\image\Functional\Rest\ImageStyleResourceTestBase::getExpectedNormalizedEntity()
  3. 11.x core/modules/image/tests/src/Functional/Rest/ImageStyleResourceTestBase.php \Drupal\Tests\image\Functional\Rest\ImageStyleResourceTestBase::getExpectedNormalizedEntity()

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.