public function context($context = null)
    {
        if ($context instanceof ContextInterface) {
            $this->_context = $context;
        }

        return $this->_getContext();
    }
public function context($context = null)
    {
        if ($context instanceof ContextInterface) {
            $this->_context = $context;
        }

        return $this->_getContext();
    }
public function context ( $ context = null ) { if ( $ context instanceof ContextInterface ) { $ this -> _context = $ context ; } return $ this -> _getContext ( ) ; }
Get the context instance for the current form set.

If there is no active form null will be returned.

@param \Cake\View\Form\ContextInterface|null $context Either the new context when setting, or null to get.
@return \Cake\View\Form\ContextInterface The context for the form.
Get the context instance for the current form set .