Skip to content

Commit

Permalink
Expand comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xendk committed Dec 9, 2024
1 parent 2b882ec commit 1260f72
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions web/modules/custom/dpl_event/dpl_event.module
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,11 @@ function dpl_event_gin_content_form_routes() : array {
/**
* Implements hook_entity_query_TAG_alter().
*
* Alter vocabulary queries to hide the vocabulary when the screens feature
* is disabled.
* Deny access to the screen name vocabulary when the feature is disabled.
*
* This is to totally hide the vocabulary when the feature is disabled.
*
* hook_entity_query_TAG_alter() is the way to hook into `accessCheck(TRUE)`.
*/
function dpl_event_entity_query_taxonomy_vocabulary_alter(QueryInterface $query): void {
if (!\Drupal::config(SettingsForm::CONFIG_NAME)->get('enable_screen_name')) {
Expand Down

0 comments on commit 1260f72

Please sign in to comment.