function TourResourceTestBase::getExpectedNormalizedEntity
Returns the expected normalization of the entity.
Return value
array
Overrides EntityResourceTestBase::getExpectedNormalizedEntity
File
- 
              core/modules/ tour/ tests/ src/ Functional/ Rest/ TourResourceTestBase.php, line 65 
Class
Namespace
Drupal\Tests\tour\Functional\RestCode
protected function getExpectedNormalizedEntity() {
  return [
    'dependencies' => [],
    'id' => 'tour-llama',
    'label' => 'Llama tour',
    'langcode' => 'en',
    'module' => 'tour',
    'routes' => [
      [
        'route_name' => '<front>',
      ],
    ],
    'status' => TRUE,
    'tips' => [
      'tour-llama-1' => [
        'id' => 'tour-llama-1',
        'plugin' => 'text',
        'label' => 'Llama',
        'body' => 'Who handle the awesomeness of llamas?',
        'weight' => 100,
        'selector' => '#tour-llama-1',
      ],
    ],
    'uuid' => $this->entity
      ->uuid(),
  ];
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
