function MenuResourceTestBase::getExpectedNormalizedEntity

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

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

File

core/modules/system/tests/src/Functional/Rest/MenuResourceTestBase.php, line 51

Class

MenuResourceTestBase

Namespace

Drupal\Tests\system\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
    return [
        'dependencies' => [],
        'description' => 'Menu',
        'id' => 'menu',
        'label' => 'Menu',
        'langcode' => 'en',
        'locked' => FALSE,
        'status' => TRUE,
        'uuid' => $this->entity
            ->uuid(),
    ];
}

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