function MediaEmbedFilterTest::providerMissingEntityIndicator
Same name in other branches
- 9 core/modules/media/tests/src/Kernel/MediaEmbedFilterTest.php \Drupal\Tests\media\Kernel\MediaEmbedFilterTest::providerMissingEntityIndicator()
- 8.9.x core/modules/media/tests/src/Kernel/MediaEmbedFilterTest.php \Drupal\Tests\media\Kernel\MediaEmbedFilterTest::providerMissingEntityIndicator()
- 11.x core/modules/media/tests/src/Kernel/MediaEmbedFilterTest.php \Drupal\Tests\media\Kernel\MediaEmbedFilterTest::providerMissingEntityIndicator()
Data provider for testMissingEntityIndicator().
File
-
core/
modules/ media/ tests/ src/ Kernel/ MediaEmbedFilterTest.php, line 312
Class
- MediaEmbedFilterTest
- @coversDefaultClass \Drupal\media\Plugin\Filter\MediaEmbed @group media @group #slow
Namespace
Drupal\Tests\media\KernelCode
public static function providerMissingEntityIndicator() {
return [
'invalid UUID' => [
'uuid' => 'invalidUUID',
'filter_ids' => [
'filter_align',
'filter_caption',
'media_embed',
],
'additional_attributes' => [],
],
'valid UUID but for a deleted entity' => [
'uuid' => static::EMBEDDED_ENTITY_UUID,
'filter_ids' => [
'filter_align',
'filter_caption',
'media_embed',
],
'additional_attributes' => [],
],
'invalid UUID; data-align attribute without filter_align enabled' => [
'uuid' => 'invalidUUID',
'filter_ids' => [
'filter_caption',
'media_embed',
],
'additional_attributes' => [
'data-align' => 'right',
],
],
'invalid UUID; data-align attribute with filter_align enabled' => [
'uuid' => 'invalidUUID',
'filter_ids' => [
'filter_align',
'filter_caption',
'media_embed',
],
'additional_attributes' => [
'data-align' => 'left',
],
],
'valid UUID but for a deleted entity; data-align attribute with filter_align enabled' => [
'uuid' => static::EMBEDDED_ENTITY_UUID,
'filter_ids' => [
'filter_align',
'filter_caption',
'media_embed',
],
'additional_attributes' => [
'data-align' => 'center',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.