Skip to content

Commit

Permalink
[AdminListBundle] fixes forgotten commit new feature changeablelimiti…
Browse files Browse the repository at this point in the history
…nterface (#1967)
  • Loading branch information
Numkil committed May 10, 2018
1 parent f5652ae commit 40de0eb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Kunstmaan/AdminListBundle/Twig/AdminListTwigExtension.php
Expand Up @@ -27,6 +27,27 @@ public function getFunctions()
];
}

/**
* {@inheritdoc}
*/
public function getTests()
{
return [
new \Twig_SimpleTest('instanceof', [$this, 'isInstanceOf']),
];
}

/**
* @param object $object
* @param string $class
*
* @return bool
*/
public function isInstanceOf($object, $class)
{
return $object instanceof $class;
}

/**
* Renders the HTML for a given view
*
Expand Down

0 comments on commit 40de0eb

Please sign in to comment.