Former\Form\Group::blockHelp PHP Method

blockHelp() public method

Add an block help
public blockHelp ( string $help, array $attributes = [] )
$help string The help text
$attributes array Facultative attributes
    public function blockHelp($help, $attributes = array())
    {
        // Reserved method
        if ($this->app['former.framework']->isnt('TwitterBootstrap') && $this->app['former.framework']->isnt('TwitterBootstrap3')) {
            throw new BadMethodCallException('This method is only available on the Bootstrap framework');
        }
        // If no help text, do nothing
        if (!$help) {
            return false;
        }
        $this->help['block'] = $this->app['former.framework']->createBlockHelp($help, $attributes);
    }