You are here

protected function ShortcutResourceTestBase::getNormalizedPostEntity in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/shortcut/tests/src/Functional/Rest/ShortcutResourceTestBase.php \Drupal\Tests\shortcut\Functional\Rest\ShortcutResourceTestBase::getNormalizedPostEntity()
  2. 9 core/modules/shortcut/tests/src/Functional/Rest/ShortcutResourceTestBase.php \Drupal\Tests\shortcut\Functional\Rest\ShortcutResourceTestBase::getNormalizedPostEntity()

File

core/modules/shortcut/tests/src/Functional/Rest/ShortcutResourceTestBase.php, line 128

Class

ShortcutResourceTestBase
ResourceTestBase for Shortcut entity.

Namespace

Drupal\Tests\shortcut\Functional\Rest

Code

protected function getNormalizedPostEntity() {
  return [
    'title' => [
      [
        'value' => 'Comments',
      ],
    ],
    'link' => [
      [
        'uri' => 'internal:/',
      ],
    ],
    'shortcut_set' => [
      [
        'target_id' => 'default',
      ],
    ],
  ];
}