You are here

protected function CKEditorTest::getDefaultAllowedContentConfig in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/ckeditor/src/Tests/CKEditorTest.php \Drupal\ckeditor\Tests\CKEditorTest::getDefaultAllowedContentConfig()
2 calls to CKEditorTest::getDefaultAllowedContentConfig()
CKEditorTest::testGetJSSettings in core/modules/ckeditor/src/Tests/CKEditorTest.php
Tests CKEditor::getJSSettings().
CKEditorTest::testInternalGetConfig in core/modules/ckeditor/src/Tests/CKEditorTest.php
Tests Internal::getConfig().

File

core/modules/ckeditor/src/Tests/CKEditorTest.php, line 432
Contains \Drupal\ckeditor\Tests\CKEditorTest.

Class

CKEditorTest
Tests for the 'CKEditor' text editor plugin.

Namespace

Drupal\ckeditor\Tests

Code

protected function getDefaultAllowedContentConfig() {
  return [
    'h2' => [
      'attributes' => 'id',
      'styles' => FALSE,
      'classes' => FALSE,
    ],
    'h3' => [
      'attributes' => FALSE,
      'styles' => FALSE,
      'classes' => FALSE,
    ],
    'h4' => [
      'attributes' => FALSE,
      'styles' => FALSE,
      'classes' => FALSE,
    ],
    'h5' => [
      'attributes' => FALSE,
      'styles' => FALSE,
      'classes' => FALSE,
    ],
    'h6' => [
      'attributes' => FALSE,
      'styles' => FALSE,
      'classes' => FALSE,
    ],
    'p' => [
      'attributes' => FALSE,
      'styles' => FALSE,
      'classes' => FALSE,
    ],
    'br' => [
      'attributes' => FALSE,
      'styles' => FALSE,
      'classes' => FALSE,
    ],
    'strong' => [
      'attributes' => FALSE,
      'styles' => FALSE,
      'classes' => FALSE,
    ],
    'a' => [
      'attributes' => 'href,hreflang',
      'styles' => FALSE,
      'classes' => FALSE,
    ],
    '*' => [
      'attributes' => 'lang,dir',
      'styles' => FALSE,
      'classes' => FALSE,
    ],
  ];
}