ViewsTestQueryAccessHooks.php
Namespace
Drupal\views_test_query_access\HookFile
-
core/
modules/ views/ tests/ modules/ views_test_query_access/ src/ Hook/ ViewsTestQueryAccessHooks.php
View source
<?php
declare (strict_types=1);
namespace Drupal\views_test_query_access\Hook;
use Drupal\Core\Database\Query\AlterableInterface;
use Drupal\Core\Hook\Attribute\Hook;
/**
* Hook implementations for views_test_query_access.
*/
class ViewsTestQueryAccessHooks {
/**
* Implements hook_query_TAG_alter() for the 'media_access' query tag.
*/
public function queryMediaAccessAlter(AlterableInterface $query) {
_views_test_query_access_restrict_by_uuid($query);
}
/**
* Implements hook_query_TAG_alter() for the 'block_content_access' query tag.
*/
public function queryBlockContentAccessAlter(AlterableInterface $query) {
_views_test_query_access_restrict_by_uuid($query);
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
ViewsTestQueryAccessHooks | Hook implementations for views_test_query_access. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.