src/View/Helper/MenuHelper.php
protected function _extractMenuOptions(array &$options)
    {
        $menuOptions = array_intersect_key(
            $options,
            array_flip([
                'templates',
                'templateVars',
                'menuAttributes'
            ])
        );

        $options = array_diff_key($options, $menuOptions);

        return $menuOptions;
    }
protected function _extractMenuOptions(array &$options)
    {
        $menuOptions = array_intersect_key(
            $options,
            array_flip([
                'templates',
                'templateVars',
                'menuAttributes'
            ])
        );

        $options = array_diff_key($options, $menuOptions);

        return $menuOptions;
    }
protected function _extractMenuOptions ( array & $ options ) { $ menuOptions = array_intersect_key ( $ options , array_flip ( [ 'templates' , 'templateVars' , 'menuAttributes' ] ) ) ; $ options = array_diff_key ( $ options , $ menuOptions ) ; return $ menuOptions ; }
Extracts the menu options from an options array.

Menu options are:

- `templates`
- `templateVars`
- `menuAttributes`

@param array $options The options array from which to extract (and remove) the menu options.
@return array The extracted renderer options.
Extracts the menu options from an options array .