public function doNotMatchAction(array $action, $reset = false)
    {
        if ($reset) {
            $this->_doNotMatchAction = [];
        }
        if (!empty($action)) {
            $this->_doNotMatchAction[] = $action;
        }

        return $this;
    }
public function doNotMatchAction(array $action, $reset = false)
    {
        if ($reset) {
            $this->_doNotMatchAction = [];
        }
        if (!empty($action)) {
            $this->_doNotMatchAction[] = $action;
        }

        return $this;
    }
public function doNotMatchAction ( array $ action , $ reset = false ) { if ( $ reset ) { $ this -> _doNotMatchAction = [ ] ; } if ( ! empty ( $ action ) ) { $ this -> _doNotMatchAction [ ] = $ action ; } return $ this ; }
Add an action which this menu item should not match for.

@param array $action
@param bool $reset Whether to reset existing 'doNotMatchAction' entries.
@return MenuItem|array
Add an action which this menu item should not match for .