fix renderLabel signature

This commit is contained in:
Julien Fastré 2015-12-29 17:04:58 +01:00
parent 287c70c6f3
commit 7a8ef70cd1

View File

@ -103,11 +103,10 @@ class CustomFieldRenderingTwig extends \Twig_Extension implements ContainerAware
* Twig Extension that is used to render the label of a custom field. * 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 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' * @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. * @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); $resolvedParams = array_merge($this->defaultParams, $params);