🇩🇪Germany 1000.grad.digital
i use this solution!
Core Patch:
(drupal/core/lib/Drupal/Core/Menu/MenuTreeParameters.php)
--- MenuTreeParameters.php.BAK 2025-02-10 21:55:07.477305842 +0100
+++ MenuTreeParameters.php 2025-02-10 21:58:06.924300799 +0100
@@ -178,7 +178,9 @@
* @return $this
*/
public function onlyEnabledLinks() {
- $this->addCondition('enabled', 1);
+ if (!isset($this->conditions['enabled'])) {
+ $this->addCondition('enabled', 1);
+ }
return $this;
}
Filter Parameter:
&filter[conditions][enabled][value][]=0&filter[conditions][enabled][value][]=1&filter[conditions][enabled][operator]=IN
🇩🇪Germany 1000.grad.digital
I'm using an alternative solution with support for the 'file_public_base_url' environment.