Skip to content

Commit

Permalink
fix/indistinguishable-suggestions-move-getLable-427
Browse files Browse the repository at this point in the history
  • Loading branch information
moreamazingnick committed Jan 26, 2024
1 parent e4be3c5 commit 6d21f9d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 0 additions & 11 deletions library/Businessprocess/BpNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,17 +370,6 @@ public function getAlias()
return $this->alias ? preg_replace('~_~', ' ', $this->alias) : $this->name;
}

/**
* Get the label of the node
*
* @return ?string
*/
public function getLabel()
{
return ($this->alias ?? $this->name)
. ' (' . implode(' » ', $this->getPaths()[0]) . ')';
}

/**
* @return int
*/
Expand Down
11 changes: 11 additions & 0 deletions library/Businessprocess/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,17 @@ public function setAlias($alias)
return $this;
}

/**
* Get the label of the node
*
* @return ?string
*/
public function getLabel()
{
return ($this->alias ?? $this->name)
. ' (' . implode(' » ', $this->getPaths()[0]) . ')';
}

public function hasParents()
{
return count($this->parents) > 0;
Expand Down

0 comments on commit 6d21f9d

Please sign in to comment.