diff --git a/modules/oe_theme_helper/src/TwigExtension/TwigExtension.php b/modules/oe_theme_helper/src/TwigExtension/TwigExtension.php index 7a3156de3..11c15ad08 100644 --- a/modules/oe_theme_helper/src/TwigExtension/TwigExtension.php +++ b/modules/oe_theme_helper/src/TwigExtension/TwigExtension.php @@ -459,6 +459,13 @@ protected function getIconPath(array $context, string $icon): string { * The trimmed output. */ public function smartTrim(Environment $env, $input, $limit = 0) { + if ($limit === NULL) { + // phpcs:disable Drupal.Semantics.FunctionTriggerError + @trigger_error('Using the smart_trim filter with a null limit value is deprecated in oe_theme:3.x and will be removed in oe_theme:4.x releases.', E_USER_DEPRECATED); + // phpcs:enable + $limit = 0; + } + // Bubbles Twig template argument's cacheability & attachment metadata. $this->bubbleArgMetadata($input); $truncate = new TruncateHTML();