mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-04 01:09:25 -05:00
BpNode: add id helper
This commit is contained in:
parent
11322d2309
commit
e311d086cc
2 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@ abstract class BaseElement extends Html
|
|||
} else {
|
||||
$this->attributes = Attributes::wantAttributes($default);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return $this->attributes;
|
||||
|
|
|
|||
Loading…
Reference in a new issue