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);