public function alterTextarea(MethodInvocation $invocation)
    {
        $helper = $invocation->getThis();
        list($fieldName, $options) = array_pad($invocation->getArguments(), 2, null);
        $options = (array)$options;
        $options = $this->_addClass($helper, $options, 'form-control');

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

        return $invocation->proceed();
    }
public function alterTextarea(MethodInvocation $invocation)
    {
        $helper = $invocation->getThis();
        list($fieldName, $options) = array_pad($invocation->getArguments(), 2, null);
        $options = (array)$options;
        $options = $this->_addClass($helper, $options, 'form-control');

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

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

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