public function CacheableMetadataCalculationTest::access in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/src/Plugin/views/access/CacheableMetadataCalculationTest.php \Drupal\views_test_cacheable_metadata_calculation\Plugin\views\access\CacheableMetadataCalculationTest::access()
Determine if the current user has access or not.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user who wants to access this view.
Return value
bool Returns whether the user has access to the view.
Overrides AccessPluginBase::access
File
- core/
modules/ views/ tests/ modules/ views_test_cacheable_metadata_calculation/ src/ Plugin/ views/ access/ CacheableMetadataCalculationTest.php, line 63
Class
- CacheableMetadataCalculationTest
- Tests plugin that reports when cacheable metadata is being calculated.
Namespace
Drupal\views_test_cacheable_metadata_calculation\Plugin\views\accessCode
public function access(AccountInterface $account) {
return TRUE;
}