function ActionResourceTestBase::getExpectedNormalizedEntity

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

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

File

core/modules/system/tests/src/Functional/Rest/ActionResourceTestBase.php, line 56

Class

ActionResourceTestBase

Namespace

Drupal\Tests\system\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
    return [
        'configuration' => [
            'rid' => 'anonymous',
        ],
        'dependencies' => [
            'config' => [
                'user.role.anonymous',
            ],
            'module' => [
                'user',
            ],
        ],
        'id' => 'user_add_role_action.anonymous',
        'label' => 'Add the anonymous role to the selected users',
        'langcode' => 'en',
        'plugin' => 'user_add_role_action',
        'status' => TRUE,
        'type' => 'user',
        'uuid' => $this->entity
            ->uuid(),
    ];
}

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