function ViewResourceTestBase::getExpectedNormalizedEntity
Returns the expected normalization of the entity.
Return value
array
Overrides EntityResourceTestBase::getExpectedNormalizedEntity
File
- 
              core/
modules/ views/ tests/ src/ Functional/ Rest/ ViewResourceTestBase.php, line 47  
Class
Namespace
Drupal\Tests\views\Functional\RestCode
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(),
  ];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.