protected function getMenuOptions(array $settings)
    {
        $mapping = [
            'current_class' => 'currentClass',
            'first_class' => 'firstClass',
            'last_class' => 'lastClass',
            'safe_labels' => 'allow_safe_labels',
            'menu_template' => 'template',
        ];

        $options = [];

        foreach ($settings as $key => $value) {
            if (\array_key_exists($key, $mapping) && null !== $value) {
                $options[$mapping[$key]] = $value;
            }
        }

        return $options;
    }
protected function getMenuOptions(array $settings)
    {
        $mapping = [
            'current_class' => 'currentClass',
            'first_class' => 'firstClass',
            'last_class' => 'lastClass',
            'safe_labels' => 'allow_safe_labels',
            'menu_template' => 'template',
        ];

        $options = [];

        foreach ($settings as $key => $value) {
            if (\array_key_exists($key, $mapping) && null !== $value) {
                $options[$mapping[$key]] = $value;
            }
        }

        return $options;
    }
protected function getMenuOptions ( array $ settings ) { $ mapping = [ 'current_class' => 'currentClass' , 'first_class' => 'firstClass' , 'last_class' => 'lastClass' , 'safe_labels' => 'allow_safe_labels' , 'menu_template' => 'template' , ] ; $ options = [ ] ; foreach ( $ settings as $ key => $ value ) { if ( \ array_key_exists ( $ key , $ mapping ) && null !== $ value ) { $ options [ $ mapping [ $ key ] ] = $ value ; } } return $ options ; }
Replaces setting keys with knp menu item options keys.

@param array $settings

@return array
Replaces setting keys with knp menu item options keys .