src/Sulu/Bundle/PageBundle/Controller/NodeController.php
private function handleActionParameter($actionParameter, $document, $locale)
    {
        switch ($actionParameter) {
            case 'publish':
                $this->getDocumentManager()->publish($document, $locale);
                break;
        }
    }
private function handleActionParameter($actionParameter, $document, $locale)
    {
        switch ($actionParameter) {
            case 'publish':
                $this->getDocumentManager()->publish($document, $locale);
                break;
        }
    }
private function handleActionParameter ( $ actionParameter , $ document , $ locale ) { switch ( $ actionParameter ) { case 'publish' : $ this -> getDocumentManager ( ) -> publish ( $ document , $ locale ) ; break ; } }
Delegates actions by given actionParameter, which can be retrieved from the request.

@param string $actionParameter
@param object $document
@param string $locale
Delegates actions by given actionParameter which can be retrieved from the request .