BpNode: add id helper

This commit is contained in:
Thomas Gelf 2016-11-28 17:30:27 +01:00
parent 11322d2309
commit e311d086cc
2 changed files with 5 additions and 1 deletions

View file

@ -286,6 +286,11 @@ class BpNode extends Node
return $this->state;
}
public function getHtmlId()
{
return 'businessprocess-' . preg_replace('/[\r\n\t\s]/', '_', (string) $this);
}
protected function invertSortingState($state)
{
return self::$sortStateInversionMap[$state >> self::SHIFT_FLAGS] << self::SHIFT_FLAGS;

View file

@ -27,7 +27,6 @@ abstract class BaseElement extends Html
} else {
$this->attributes = Attributes::wantAttributes($default);
}
}
return $this->attributes;