Skip to content

34555743: Include tag on Filter query.

This would allow any developer implement hook_query_TAG_alter and add the conditions and joins as desired, can be to exclude some taxonomy terms or any other condition per project needs. eg:

/**
 * Implements hook_query_TAG_alter().
 */
function MODULE_query_glossify_taxonomy_tooltip_alter(Drupal\Core\Database\Query\AlterableInterface $query) {
  $query->leftJoin('taxonomy_term__field_exclude_from_glossary', 't__feg', 't__feg.entity_id=tfd.tid');
  $query->condition(
    $query->orConditionGroup()
      ->condition('t__feg.field_exclude_from_glossary_value', 0)
      ->isNull('t__feg.field_exclude_from_glossary_value')
  );
}

Closes #3455743

Merge request reports

Loading