function ImageTestBase::providerLinkability

Same name and namespace in other branches
  1. 9 core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php \Drupal\Tests\ckeditor5\FunctionalJavascript\ImageTestBase::providerLinkability()
2 calls to ImageTestBase::providerLinkability()
ImageTestBase::testImageArbitraryHtml in core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php
Tests that arbitrary attributes are allowed via GHS.
ImageTestBase::testLinkability in core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php
Tests linkability of the image CKEditor widget.

File

core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestBase.php, line 465

Class

ImageTestBase
@coversDefaultClass \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Image[[api-linebreak]] @group ckeditor5 @internal

Namespace

Drupal\Tests\ckeditor5\FunctionalJavascript

Code

protected function providerLinkability() : array {
  return [
    'BLOCK image, restricted' => [
      'block',
      FALSE,
    ],
    'BLOCK image, unrestricted' => [
      'block',
      TRUE,
    ],
    'INLINE image, restricted' => [
      'inline',
      FALSE,
    ],
    'INLINE image, unrestricted' => [
      'inline',
      TRUE,
    ],
  ];
}

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