Former\Form\Group::getHelp PHP Method

getHelp() protected method

Prints out the current help
protected getHelp ( ) : string
return string A .help-block or .help-inline
    protected function getHelp()
    {
        $inline = array_get($this->help, 'inline');
        $block = array_get($this->help, 'block');
        // Replace help text with error if any found
        $errors = $this->app['former']->getErrors();
        if ($errors and $this->app['former']->getOption('error_messages')) {
            $inline = $this->app['former.framework']->createHelp($errors);
        }
        return join(null, array($inline, $block));
    }