From af8fe7c03df7b9ec67d79ff0ca5349db407eb7ef Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 22 Dec 2016 14:18:13 +0100 Subject: [PATCH] ImportedNode: provide Url --- library/Businessprocess/ImportedNode.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/library/Businessprocess/ImportedNode.php b/library/Businessprocess/ImportedNode.php index c099d43..318a83a 100644 --- a/library/Businessprocess/ImportedNode.php +++ b/library/Businessprocess/ImportedNode.php @@ -59,6 +59,16 @@ class ImportedNode extends Node return $this->importedNode()->getAlias(); } + public function getUrl() + { + $params = array( + 'config' => $this->getConfigName(), + 'node' => $this->importedNode->getName() + ); + + return Url::fromPath('businessprocess/process/show', $params); + } + /** * @inheritdoc */