public function getNodeAttributes($attributes, \Finite\State\StateInterface $state, \Finite\StateMachine\StateMachineInterface $stateMachine) { $props = $state->getProperties(); if (count($props) > 0) { foreach (array_keys($props) as $prop) { $attributes['label'] .= "\\n* " . $prop; } } return $attributes; }
/** * Returns the node label. * * @param \Finite\State\StateInterface $state * @return string */ private function getNodeLabel(StateInterface $state) { $id = $state->getName(); $props = $state->getProperties(); if (count($props) > 0 && $this->configuration->renderProperties()) { foreach (array_keys($props) as $prop) { $id .= "\\n* " . $prop; } } return $id; }