function ActionResourceTestBase::getExpectedNormalizedEntity
Same name in this branch
- 11.x core/modules/action/tests/src/Functional/Rest/ActionResourceTestBase.php \Drupal\Tests\action\Functional\Rest\ActionResourceTestBase::getExpectedNormalizedEntity()
Same name in other branches
- 9 core/modules/system/tests/src/Functional/Rest/ActionResourceTestBase.php \Drupal\Tests\system\Functional\Rest\ActionResourceTestBase::getExpectedNormalizedEntity()
- 8.9.x core/modules/system/tests/src/Functional/Rest/ActionResourceTestBase.php \Drupal\Tests\system\Functional\Rest\ActionResourceTestBase::getExpectedNormalizedEntity()
- 10 core/modules/action/tests/src/Functional/Rest/ActionResourceTestBase.php \Drupal\Tests\action\Functional\Rest\ActionResourceTestBase::getExpectedNormalizedEntity()
- 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
Namespace
Drupal\Tests\system\Functional\RestCode
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.