function FilterFormatResourceTestBase::getExpectedNormalizedEntity

Returns the expected normalization of the entity.

Return value

array An array structure as returned by ::getExpectedNormalizedEntity().

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

File

core/modules/filter/tests/src/Functional/Rest/FilterFormatResourceTestBase.php, line 61

Class

FilterFormatResourceTestBase
Resource test base for the FilterFormat entity.

Namespace

Drupal\Tests\filter\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
  return [
    'dependencies' => [],
    'filters' => [
      'filter_html' => [
        'id' => 'filter_html',
        'provider' => 'filter',
        'status' => TRUE,
        'weight' => -10,
        'settings' => [
          'allowed_html' => '<p> <a> <b> <lo>',
          'filter_html_help' => TRUE,
          'filter_html_nofollow' => FALSE,
        ],
      ],
    ],
    'format' => 'pablo',
    'langcode' => 'es',
    'name' => 'Pablo Picasso',
    '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.