'addnew'); public function __construct(Renderer $renderer) { $bp = $renderer->getBusinessProcess(); $path = $renderer->getMyPath(); $params = array( 'config' => $bp->getName() ); // Workaround for array issues $url = Url::fromPath('businessprocess/process/create'); $p = $url->getParams(); $p->mergeValues($params); if (! empty($path)) { $p->addValues('path', $path); } $this->add( Link::create( $this->translate('Add'), $url, null, array( 'title' => $this->translate('Add a new business process node') ) ) ); } }