function SearchEntityOperationsCacheabilityTest::providerEntityOperationsCacheability

Same name and namespace in other branches
  1. main core/modules/search/tests/src/Kernel/SearchEntityOperationsCacheabilityTest.php \Drupal\Tests\search\Kernel\SearchEntityOperationsCacheabilityTest::providerEntityOperationsCacheability()

Data provider for testEntityOperationsCacheability().

Overrides EntityOperationsCacheabilityTest::providerEntityOperationsCacheability

File

core/modules/search/tests/src/Kernel/SearchEntityOperationsCacheabilityTest.php, line 21

Class

SearchEntityOperationsCacheabilityTest
Tests cacheability added by entity operations.

Namespace

Drupal\Tests\search\Kernel

Code

public static function providerEntityOperationsCacheability() : iterable {
  yield [
    [
      'user',
      'search',
    ],
    'search_page',
    [
      'plugin' => 'user_search',
      'path' => '/test_user_search',
    ],
    [
      'config:search.page.test',
    ],
    [
      'user.permissions',
    ],
    FALSE,
    TRUE,
  ];
}

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