function SearchPageResourceTestBase::getExpectedNormalizedEntity

Same name in other branches
  1. 9 core/modules/search/tests/src/Functional/Rest/SearchPageResourceTestBase.php \Drupal\Tests\search\Functional\Rest\SearchPageResourceTestBase::getExpectedNormalizedEntity()
  2. 10 core/modules/search/tests/src/Functional/Rest/SearchPageResourceTestBase.php \Drupal\Tests\search\Functional\Rest\SearchPageResourceTestBase::getExpectedNormalizedEntity()
  3. 11.x core/modules/search/tests/src/Functional/Rest/SearchPageResourceTestBase.php \Drupal\Tests\search\Functional\Rest\SearchPageResourceTestBase::getExpectedNormalizedEntity()

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

File

core/modules/search/tests/src/Functional/Rest/SearchPageResourceTestBase.php, line 59

Class

SearchPageResourceTestBase

Namespace

Drupal\Tests\search\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
    return [
        'configuration' => [
            'rankings' => [],
        ],
        'dependencies' => [
            'module' => [
                'node',
            ],
        ],
        'id' => 'hinode_search',
        'label' => 'Search of magnetic activity of the Sun',
        'langcode' => 'en',
        'path' => 'sun',
        'plugin' => 'node_search',
        'status' => TRUE,
        'uuid' => $this->entity
            ->uuid(),
        'weight' => 0,
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.