You are here

protected function ViewResourceTestBase::getExpectedNormalizedEntity in Drupal 10

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

File

core/modules/views/tests/src/Functional/Rest/ViewResourceTestBase.php, line 47

Class

ViewResourceTestBase

Namespace

Drupal\Tests\views\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
  return [
    'base_field' => 'nid',
    'base_table' => 'node',
    'dependencies' => [],
    'description' => '',
    'display' => [
      'default' => [
        'display_plugin' => 'default',
        'id' => 'default',
        'display_title' => 'Default',
        'position' => 0,
        'display_options' => [
          'display_extenders' => [],
        ],
        'cache_metadata' => [
          'max-age' => -1,
          'contexts' => [
            'languages:language_interface',
            'url.query_args',
          ],
          'tags' => [],
        ],
      ],
    ],
    'id' => 'test_rest',
    'label' => 'Test REST',
    'langcode' => 'en',
    'module' => 'views',
    'status' => TRUE,
    'tag' => '',
    'uuid' => $this->entity
      ->uuid(),
  ];
}