From 52abb4fb929911f3a0d239ad7e5a40c116d2c427 Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Wed, 6 Nov 2024 14:02:28 +0100 Subject: [PATCH] IBX-8805: Dropped deprecated Twig Functions&Filters --- .../Extension/RichTextConverterExtension.php | 18 ------------------ .../Extension/YoutubeIdExtractorExtension.php | 8 -------- 2 files changed, 26 deletions(-) diff --git a/src/bundle/Templating/Twig/Extension/RichTextConverterExtension.php b/src/bundle/Templating/Twig/Extension/RichTextConverterExtension.php index babe0997..3e18e295 100644 --- a/src/bundle/Templating/Twig/Extension/RichTextConverterExtension.php +++ b/src/bundle/Templating/Twig/Extension/RichTextConverterExtension.php @@ -32,24 +32,6 @@ public function __construct( public function getFilters(): array { return [ - new TwigFilter( - 'ez_richtext_to_html5', - [$this, 'richTextToHtml5'], - [ - 'is_safe' => ['html'], - 'deprecated' => '4.0', - 'alternative' => 'ibexa_richtext_to_html5', - ] - ), - new TwigFilter( - 'ez_richtext_to_html5_edit', - [$this, 'richTextToHtml5Edit'], - [ - 'is_safe' => ['html'], - 'deprecated' => '4.0', - 'alternative' => 'ibexa_richtext_to_html5_edit', - ] - ), new TwigFilter( 'ibexa_richtext_to_html5', [$this, 'richTextToHtml5'], diff --git a/src/bundle/Templating/Twig/Extension/YoutubeIdExtractorExtension.php b/src/bundle/Templating/Twig/Extension/YoutubeIdExtractorExtension.php index 23e25248..06372b5d 100644 --- a/src/bundle/Templating/Twig/Extension/YoutubeIdExtractorExtension.php +++ b/src/bundle/Templating/Twig/Extension/YoutubeIdExtractorExtension.php @@ -26,14 +26,6 @@ public function getFunctions(): array 'ibexa_richtext_youtube_extract_id', [$this, 'extractId'] ), - new TwigFunction( - 'ez_richtext_youtube_extract_id', - [$this, 'extractId'], - [ - 'deprecated' => '4.0', - 'alternative' => 'ibexa_richtext_youtube_extract_id', - ] - ), ]; }