public function alterSelectbox(MethodInvocation $invocation)
    {
        $helper = $invocation->getThis();
        list($fieldName, $options, $attributes) = array_pad($invocation->getArguments(), 3, null);
        $options = $options === null ? [] : $options;
        $attributes = (array)$attributes;
        $attributes = $this->_addClass($helper, $attributes, 'form-control');

        $this->setProperty($invocation, 'arguments', [$fieldName, $options, $attributes]);

        return $invocation->proceed();
    }
public function alterSelectbox(MethodInvocation $invocation)
    {
        $helper = $invocation->getThis();
        list($fieldName, $options, $attributes) = array_pad($invocation->getArguments(), 3, null);
        $options = $options === null ? [] : $options;
        $attributes = (array)$attributes;
        $attributes = $this->_addClass($helper, $attributes, 'form-control');

        $this->setProperty($invocation, 'arguments', [$fieldName, $options, $attributes]);

        return $invocation->proceed();
    }
public function alterSelectbox ( MethodInvocation $ invocation ) { $ helper = $ invocation -> getThis ( ) ; list ( $ fieldName , $ options , $ attributes ) = array_pad ( $ invocation -> getArguments ( ) , 3 , null ) ; $ options = $ options === null ? [ ] : $ options ; $ attributes = ( array ) $ attributes ; $ attributes = $ this -> _addClass ( $ helper , $ attributes , 'form-control' ) ; $ this -> setProperty ( $ invocation , 'arguments' , [ $ fieldName , $ options , $ attributes ] ) ; return $ invocation -> proceed ( ) ; }
Appends some CSS classes to select elements.

@param \Go\Aop\Intercept\MethodInvocation $invocation Invocation
@Around("execution(public Cake\View\Helper\FormHelper->select(*))")
@return bool Whether object invocation should proceed or not
Appends some CSS classes to select elements .