function ActionResourceTestBase::getExpectedNormalizedEntity
Returns the expected normalization of the entity.
Return value
array An array structure as returned by ::getExpectedNormalizedEntity().
Overrides EntityResourceTestBase::getExpectedNormalizedEntity
File
- 
              core/modules/ system/ tests/ src/ Functional/ Rest/ ActionResourceTestBase.php, line 62 
Class
- ActionResourceTestBase
- Resource test base for the action entity.
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.
