function MarkupNormalizerTest::jsonSchemaDataProvider

Overrides JsonSchemaTestTrait::jsonSchemaDataProvider

File

core/modules/serialization/tests/src/Unit/Normalizer/MarkupNormalizerTest.php, line 48

Class

MarkupNormalizerTest
@coversDefaultClass \Drupal\serialization\Normalizer\MarkupNormalizer @group serialization

Namespace

Drupal\Tests\serialization\Unit\Normalizer

Code

public static function jsonSchemaDataProvider() : array {
    return [
        'markup' => [
            Markup::create('Generic Markup'),
        ],
        'attribute' => [
            new Attribute([
                'data-test' => 'testing',
            ]),
        ],
    ];
}

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