diff --git a/reference/twig_reference.rst b/reference/twig_reference.rst index 8ad72575e82..dcbb80a9519 100644 --- a/reference/twig_reference.rst +++ b/reference/twig_reference.rst @@ -187,12 +187,12 @@ is_granted .. code-block:: twig - {{ is_granted(role, object = null, field = null) }} + {{ is_granted(attribute, subject = null, field = null) }} -``role`` +``attribute`` **type**: ``string`` -``object`` *(optional)* - **type**: ``object`` +``subject`` *(optional)* + **type**: ``mixed`` ``field`` *(optional)* **type**: ``string``