Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
entity_identifier
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
entity_identifier
Commits
1c17ef26
Commit
1c17ef26
authored
1 year ago
by
Julien Grossio
Browse files
Options
Downloads
Patches
Plain Diff
Fix deprecated usage of TwigExtension
parent
343b8cea
Branches
Branches containing commit
Tags
8.x-4.11
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/TwigExtensions/VkEntityIdentifierTwig.php
+4
-3
4 additions, 3 deletions
src/TwigExtensions/VkEntityIdentifierTwig.php
with
4 additions
and
3 deletions
src/TwigExtensions/VkEntityIdentifierTwig.php
+
4
−
3
View file @
1c17ef26
...
...
@@ -3,13 +3,14 @@
namespace
Drupal\vk_entity_identifier\TwigExtensions
;
use
Drupal\vk_entity_identifier
\VkEntityIdentifier
;
use
Twig\Extension\AbstractExtension
;
use
Twig\TwigFunction
;
/**
* Class VkEntityIdentifierTwig
* @package Drupal\vk_entity_identifier\TwigExtensions
*/
class
VkEntityIdentifierTwig
extends
\Twig_
Extension
class
VkEntityIdentifierTwig
extends
Abstract
Extension
{
/**
* @return array
...
...
@@ -17,7 +18,7 @@ class VkEntityIdentifierTwig extends \Twig_Extension
public
function
getFunctions
()
{
return
[
new
\
Twig
_Simple
Function
(
'vk_entity_identifier_url'
,
[
new
TwigFunction
(
'vk_entity_identifier_url'
,
[
$this
,
'getEntityUrl'
,
],
[
'is_safe'
=>
[
'html'
]]),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment