public function addFieldPlaceholder(array &$options, array $formFieldConfiguration, array $fieldConfiguration)
    {
        $fieldType = $this->getFieldType($formFieldConfiguration, $fieldConfiguration);

        if (isset($formFieldConfiguration['notices']['placeholder'])) {
            if (in_array($fieldType, array(ChoiceType::class, DateType::class, BirthdayType::class, DateTimeType::class, CountryType::class))) {
                $options['placeholder'] = $formFieldConfiguration['notices']['placeholder'];
            } else {
                $options['attr']['placeholder'] = $formFieldConfiguration['notices']['placeholder'];
            }
        }
    }
public function addFieldPlaceholder(array &$options, array $formFieldConfiguration, array $fieldConfiguration)
    {
        $fieldType = $this->getFieldType($formFieldConfiguration, $fieldConfiguration);

        if (isset($formFieldConfiguration['notices']['placeholder'])) {
            if (in_array($fieldType, array(ChoiceType::class, DateType::class, BirthdayType::class, DateTimeType::class, CountryType::class))) {
                $options['placeholder'] = $formFieldConfiguration['notices']['placeholder'];
            } else {
                $options['attr']['placeholder'] = $formFieldConfiguration['notices']['placeholder'];
            }
        }
    }
public function addFieldPlaceholder ( array & $ options , array $ formFieldConfiguration , array $ fieldConfiguration ) { $ fieldType = $ this -> getFieldType ( $ formFieldConfiguration , $ fieldConfiguration ) ; if ( isset ( $ formFieldConfiguration [ 'notices' ] [ 'placeholder' ] ) ) { if ( in_array ( $ fieldType , array ( ChoiceType :: class , DateType :: class , BirthdayType :: class , DateTimeType :: class , CountryType :: class ) ) ) { $ options [ 'placeholder' ] = $ formFieldConfiguration [ 'notices' ] [ 'placeholder' ] ; } else { $ options [ 'attr' ] [ 'placeholder' ] = $ formFieldConfiguration [ 'notices' ] [ 'placeholder' ] ; } } }
Adds the placeholder for a field based on the type.

@param array $options
@param array $formFieldConfiguration
@param array $fieldConfiguration
Adds the placeholder for a field based on the type .