Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-8805: Dropped deprecated Twig Functions&Filters #1390

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions src/bundle/Templating/Twig/ComponentExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,6 @@ public function __construct(
public function getFunctions()
{
return [
new TwigFunction(
'ez_render_component_group',
[$this, 'renderComponentGroup'],
[
'is_safe' => ['html'],
'deprecated' => '4.0',
'alternative' => 'ibexa_render_component_group',
]
),
new TwigFunction(
'ez_render_component',
[$this, 'renderComponent'],
[
'is_safe' => ['html'],
'deprecated' => '4.0',
'alternative' => 'ibexa_render_component',
]
),
new TwigFunction(
'ibexa_render_component_group',
[$this, 'renderComponentGroup'],
Expand Down
9 changes: 0 additions & 9 deletions src/bundle/Templating/Twig/ContentTypeIconExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@ public function __construct(ContentTypeIconResolver $contentTypeIconResolver)
public function getFunctions(): array
{
return [
new TwigFunction(
'ez_content_type_icon',
[$this->contentTypeIconResolver, 'getContentTypeIcon'],
[
'is_safe' => ['html'],
'deprecated' => '4.0',
'alternative' => 'ibexa_content_type_icon',
]
),
new TwigFunction(
'ibexa_content_type_icon',
[$this->contentTypeIconResolver, 'getContentTypeIcon'],
Expand Down
10 changes: 0 additions & 10 deletions src/bundle/Templating/Twig/FieldEditRenderingExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,6 @@ public function getFunctions(): array
};

return [
new TwigFunction(
'ez_render_field_definition_edit',
$fieldDefinitionEditCallable,
[
'is_safe' => ['html'],
'needs_environment' => true,
'deprecated' => '4.0',
'alternative' => 'ibexa_render_field_definition_edit',
]
),
new TwigFunction(
'ibexa_render_field_definition_edit',
$fieldDefinitionEditCallable,
Expand Down
10 changes: 0 additions & 10 deletions src/bundle/Templating/Twig/LimitationValueRenderingExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,6 @@ public function getFunctions(): array
};

return [
new TwigFunction(
'ez_render_limitation_value',
$limitationValueCallable,
[
'is_safe' => ['html'],
'needs_environment' => true,
'deprecated' => '4.0',
'alternative' => 'ibexa_render_limitation_value',
]
),
new TwigFunction(
'ibexa_render_limitation_value',
$limitationValueCallable,
Expand Down
8 changes: 0 additions & 8 deletions src/bundle/Templating/Twig/PathStringExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@ public function __construct(
public function getFunctions(): array
{
return [
new TwigFunction(
'ez_path_to_locations',
[$this, 'getLocationList'],
[
'deprecated' => '4.0',
'alternative' => 'ibexa_path_to_locations',
]
),
new TwigFunction(
'ibexa_path_to_locations',
[$this, 'getLocationList']
Expand Down
9 changes: 0 additions & 9 deletions src/bundle/Templating/Twig/TimeDiffExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ public function __construct(DateTimeFormatter $dateTimeFormatter)
public function getFilters()
{
return [
new TwigFilter(
'ez_datetime_diff',
[$this, 'diff'],
[
'is_safe' => ['html'],
'deprecated' => '4.0',
'alternative' => 'ibexa_datetime_diff',
]
),
new TwigFilter(
'ibexa_datetime_diff',
[$this, 'diff'],
Expand Down
9 changes: 0 additions & 9 deletions src/bundle/Templating/Twig/UniversalDiscoveryExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,6 @@ public function __construct(
public function getFunctions()
{
return [
new TwigFunction(
'ez_udw_config',
[$this, 'renderUniversalDiscoveryWidgetConfig'],
[
'is_safe' => ['json'],
'deprecated' => '4.0',
'alternative' => 'ibexa_udw_config',
]
),
new TwigFunction(
'ibexa_udw_config',
[$this, 'renderUniversalDiscoveryWidgetConfig'],
Expand Down

This file was deleted.

This file was deleted.

Loading