Skip to content

Commit

Permalink
IBX-8805: Dropped deprecated Twig Functions&Filters (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou authored Nov 7, 2024
1 parent 6c5ba2d commit 7266ac7
Showing 1 changed file with 0 additions and 60 deletions.
60 changes: 0 additions & 60 deletions src/lib/Templating/Twig/DateTimeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,66 +106,6 @@ function ($date, $timezone = null) {
return $this->format($this->fullTimeFormatter, $date, $timezone);
}
),
new TwigFilter(
'ez_short_datetime',
function ($date, $timezone = null) {
return $this->format($this->shortDateTimeFormatter, $date, $timezone);
},
[
'deprecated' => '4.0',
'alternative' => 'ibexa_short_datetime',
]
),
new TwigFilter(
'ez_short_date',
function ($date, $timezone = null) {
return $this->format($this->shortDateFormatter, $date, $timezone);
},
[
'deprecated' => '4.0',
'alternative' => 'ibexa_short_date',
]
),
new TwigFilter(
'ez_short_time',
function ($date, $timezone = null) {
return $this->format($this->shortTimeFormatter, $date, $timezone);
},
[
'deprecated' => '4.0',
'alternative' => 'ibexa_short_time',
]
),
new TwigFilter(
'ez_full_datetime',
function ($date, $timezone = null) {
return $this->format($this->fullDateTimeFormatter, $date, $timezone);
},
[
'deprecated' => '4.0',
'alternative' => 'ibexa_full_datetime',
]
),
new TwigFilter(
'ez_full_date',
function ($date, $timezone = null) {
return $this->format($this->fullDateFormatter, $date, $timezone);
},
[
'deprecated' => '4.0',
'alternative' => 'ibexa_full_date',
]
),
new TwigFilter(
'ez_full_time',
function ($date, $timezone = null) {
return $this->format($this->fullTimeFormatter, $date, $timezone);
},
[
'deprecated' => '4.0',
'alternative' => 'ibexa_full_time',
]
),
];
}

Expand Down

0 comments on commit 7266ac7

Please sign in to comment.