Former\Form\Group::prependIcon PHP Method

prependIcon() public method

Prepends an icon to a field
public prependIcon ( string $icon, array $attributes = [], $iconSettings = [] )
$icon string The icon to prepend
$attributes array Its attributes
    public function prependIcon($icon, $attributes = array(), $iconSettings = array())
    {
        $icon = $this->app['former.framework']->createIcon($icon, $attributes, $iconSettings);
        $this->prepend($icon);
    }