original_string: public function alterSubmit(MethodInvocation $invocation)
      {
          $helper = $invocation->getThis();
          list($caption, $options) = array_pad($invocation->getArguments(), 2, null);
          $options = (array)$options;
          $options = $this->_addClass($helper, $options, 'btn btn-primary');
  
          $this->_addTemplates($helper);
          $this->setProperty($invocation, 'arguments', [$caption, $options]);
  
          return $invocation->proceed();
      }
code: public function alterSubmit(MethodInvocation $invocation)
      {
          $helper = $invocation->getThis();
          list($caption, $options) = array_pad($invocation->getArguments(), 2, null);
          $options = (array)$options;
          $options = $this->_addClass($helper, $options, 'btn btn-primary');
  
          $this->_addTemplates($helper);
          $this->setProperty($invocation, 'arguments', [$caption, $options]);
  
          return $invocation->proceed();
      }
code_tokens: public function alterSubmit ( MethodInvocation $ invocation ) { $ helper = $ invocation -> getThis ( ) ; list ( $ caption , $ options ) = array_pad ( $ invocation -> getArguments ( ) , 2 , null ) ; $ options = ( array ) $ options ; $ options = $ this -> _addClass ( $ helper , $ options , 'btn btn-primary' ) ; $ this -> _addTemplates ( $ helper ) ; $ this -> setProperty ( $ invocation , 'arguments' , [ $ caption , $ options ] ) ; return $ invocation -> proceed ( ) ; }
docstring: Appends some CSS classes to submit buttons.
  
  @param \Go\Aop\Intercept\MethodInvocation $invocation Invocation
  @Around("execution(public Cake\View\Helper\FormHelper->submit(*))")
  @return bool Whether object invocation should proceed or not
docstring_tokens: Appends some CSS classes to submit buttons .