function EntityOperationsCacheabilityTest::providerEntityOperationsCacheability
Same name and namespace in other branches
- main core/modules/system/tests/src/Kernel/Entity/EntityOperationsCacheabilityTest.php \Drupal\Tests\system\Kernel\Entity\EntityOperationsCacheabilityTest::providerEntityOperationsCacheability()
Data provider for testEntityOperationsCacheability().
File
-
core/
modules/ system/ tests/ src/ Kernel/ Entity/ EntityOperationsCacheabilityTest.php, line 72
Class
- EntityOperationsCacheabilityTest
- Tests cacheability added by entity operations.
Namespace
Drupal\Tests\system\Kernel\EntityCode
public static function providerEntityOperationsCacheability() : iterable {
yield [
[
'entity_test',
],
'entity_test',
[],
[
'entity_test_operation_tag_test',
'entity_test_operation_alter_tag_test',
],
[
'user.permissions',
],
];
yield [
[
'block',
],
'block',
[
'plugin' => 'broken',
'theme' => 'stark',
'settings' => [
'label' => 'test',
],
],
[
'config:block_list',
],
[
'user.permissions',
],
FALSE,
TRUE,
];
yield [
[
'block_content',
],
'block_content',
[],
[
'block_content:1',
],
[
'user.permissions',
],
TRUE,
];
yield [
[
'comment',
],
'comment_type',
[],
[],
[
'user.permissions',
],
FALSE,
TRUE,
];
yield [
[
'field_ui',
],
'entity_view_mode',
[
'targetEntityType' => 'entity_test',
'id' => 'entity_test.test',
],
[],
[
'user.permissions',
],
FALSE,
TRUE,
];
yield [
[
'filter',
],
'filter_format',
[],
[],
[
'user.permissions',
],
FALSE,
TRUE,
];
yield [
[
'image',
],
'image_style',
[],
[],
[
'user.permissions',
],
FALSE,
TRUE,
];
yield [
[
'menu_link_content',
],
'menu_link_content',
[
'link' => 'route:<nolink>',
],
[],
[
'user.permissions',
],
];
yield [
[
'menu_ui',
],
'menu',
[],
[
'config:system.menu.test',
],
[
'user.permissions',
],
FALSE,
TRUE,
];
yield [
[
'node',
],
'node_type',
[],
[
'config:node.type.test',
],
[
'user.permissions',
],
FALSE,
TRUE,
];
yield [
[
'responsive_image',
],
'responsive_image_style',
[],
[],
[
'user.permissions',
],
FALSE,
TRUE,
];
yield [
[
'user',
'search',
],
'search_page',
[
'plugin' => 'user_search',
'path' => '/test_user_search',
],
[
'config:search.page.test',
],
[
'user.permissions',
],
FALSE,
TRUE,
];
yield [
[
'shortcut',
],
'shortcut_set',
[],
[],
[
'user.permissions',
],
FALSE,
TRUE,
];
yield [
[
'taxonomy',
],
'taxonomy_vocabulary',
[],
[],
[
'user.permissions',
],
FALSE,
TRUE,
];
yield [
[
'user',
],
'user_role',
[],
[],
[
'user.permissions',
],
FALSE,
TRUE,
];
yield [
[
'user',
],
'user',
[
'name' => 'test',
],
[],
[
'user',
'user.permissions',
],
];
yield [
[
'views_ui',
],
'view',
[],
[],
[
'user.permissions',
],
FALSE,
TRUE,
];
yield [
[
'workspaces_ui',
],
'workspace',
[],
[],
[
'user.permissions',
'workspace',
],
FALSE,
TRUE,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.