Patch #4 π Public methods are not visible in kint Closed: duplicate does not apply anymore to Devel 5.3.1
Did not try to check if still needed...
Hello,
searching to filter search results by language, I had hard time to find the right "TAG" for the search exclude query. I put here my solution to filter the search results by language using search_exclude module:
In a [MYβMODULE].module file:
use Drupal\Core\Database\Query\AlterableInterface;
/**
* Implements hook_query_TAG_alter(): tag search_$type with $type search_exclude_node_search
* the TAG part = search_search_exclude_node_search (!!!)
*
* @return Search results in current language
*/
function [MYβMODULE]_query_search_search_exclude_node_search_alter(AlterableInterface $query) {
$language = \Drupal::languageManager()->getCurrentLanguage()->getId();
$query->condition('n.langcode', $language, '=');
}
Once you find the TAG, so simple :-)
UPDATE: if I check my JS settings the allowed tags are there but maybe it is something related to the treatment of the input field used in views?
Or maybe I need to use the 2.0.x-dev version? (currently using the 2.0.2 version)...
Hello,
I maybe missing something but I'm using views to output images in colorbox. I use the "custom with token" caption field. I've put a [MY_THEME]_preprocess_views_view(&vars)
or [MY_THEME]_preprocess_views_page(&vars)
and even your proposed code but without success.
I still get only <strong>
and <a>
tags has possible HTML in caption.
I've clear my cache and run cron.
Something else maybe I'm am not aware?
Thanks for your help.
Hello,
Is this patch
#36
π
Term name with translation doesn't work
Needs review
fix this issue:
issues/2765297 β
I thought so but applying the patch doesn't seems to change anything for my title not being translated with the override {{ arguments.term_node_tid_depth }}
Thank you for your time.