From 7a8ef70cd1def721eb0123f52040319820432088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 29 Dec 2015 17:04:58 +0100 Subject: [PATCH] fix renderLabel signature --- Templating/Twig/CustomFieldRenderingTwig.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Templating/Twig/CustomFieldRenderingTwig.php b/Templating/Twig/CustomFieldRenderingTwig.php index de13b8efb..a43d7dc26 100644 --- a/Templating/Twig/CustomFieldRenderingTwig.php +++ b/Templating/Twig/CustomFieldRenderingTwig.php @@ -103,11 +103,10 @@ class CustomFieldRenderingTwig extends \Twig_Extension implements ContainerAware * Twig Extension that is used to render the label of a custom field. * * @param CustomField $customField Either a customField OR a customizable_entity OR the FQDN of the entity - * @param string $slug The slug ONLY necessary if the first argument is NOT a CustomField instance * @param array $params The parameters for rendering. Currently, 'label_layout' allow to choose a different label. Default is 'ChillCustomFieldsBundle:CustomField:render_label.html.twig' * @return string HTML representation of the custom field label. */ - public function renderLabel(CustomField $customField, $slug = null, array $params = array()) + public function renderLabel(CustomField $customField, array $params = array()) { $resolvedParams = array_merge($this->defaultParams, $params);