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