function EditorResourceTestBase::getExpectedNormalizedEntity
Returns the expected normalization of the entity.
Return value
array
Overrides EntityResourceTestBase::getExpectedNormalizedEntity
File
- 
              core/
modules/ editor/ tests/ src/ Functional/ Rest/ EditorResourceTestBase.php, line 86  
Class
- EditorResourceTestBase
 - ResourceTestBase for Editor entity.
 
Namespace
Drupal\Tests\editor\Functional\RestCode
protected function getExpectedNormalizedEntity() {
  return [
    'dependencies' => [
      'config' => [
        'filter.format.llama',
      ],
      'module' => [
        'ckeditor5',
      ],
    ],
    'editor' => 'ckeditor5',
    'format' => 'llama',
    'image_upload' => [
      'status' => TRUE,
      'scheme' => 'public',
      'directory' => 'inline-images',
      'max_size' => NULL,
      'max_dimensions' => [
        'width' => NULL,
        'height' => NULL,
      ],
    ],
    'langcode' => 'en',
    'settings' => [
      'toolbar' => [
        'items' => [
          'heading',
          'bold',
          'italic',
        ],
      ],
      'plugins' => [
        'ckeditor5_heading' => Heading::DEFAULT_CONFIGURATION,
      ],
    ],
    'status' => TRUE,
    'uuid' => $this->entity
      ->uuid(),
  ];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.