public function addInputPrefix(MethodInvocation $invocation)
    {
        $helper = $invocation->getThis();
        $args = $invocation->getArguments();
        if (!empty($args[0]) &&
            is_string($args[0]) &&
            $helper instanceof FormHelper
        ) {
            $args[0] = $this->_fieldName($helper, $args[0]);
        }
        $this->setProperty($invocation, 'arguments', $args);

        return $invocation->proceed();
    }
public function addInputPrefix(MethodInvocation $invocation)
    {
        $helper = $invocation->getThis();
        $args = $invocation->getArguments();
        if (!empty($args[0]) &&
            is_string($args[0]) &&
            $helper instanceof FormHelper
        ) {
            $args[0] = $this->_fieldName($helper, $args[0]);
        }
        $this->setProperty($invocation, 'arguments', $args);

        return $invocation->proceed();
    }
public function addInputPrefix ( MethodInvocation $ invocation ) { $ helper = $ invocation -> getThis ( ) ; $ args = $ invocation -> getArguments ( ) ; if ( ! empty ( $ args [ 0 ] ) && is_string ( $ args [ 0 ] ) && $ helper instanceof FormHelper ) { $ args [ 0 ] = $ this -> _fieldName ( $ helper , $ args [ 0 ] ) ; } $ this -> setProperty ( $ invocation , 'arguments' , $ args ) ; return $ invocation -> proceed ( ) ; }
Adds prefix to every input element that may have a "name" attribute.

@param \Go\Aop\Intercept\MethodInvocation $invocation Invocation
@Around("execution(public Cake\View\Helper\FormHelper->label|input|checkbox|radio|textarea|hidden|file|select|multiCheckbox|day|year|month|hour|minute|meridian|dateTime|time|date(*))")
@return bool Whether object invocation should proceed or not
Adds prefix to every input element that may have a name attribute .