@@ 31-39 (lines=9) @@ | ||
28 | * @param Item $item |
|
29 | * @return array |
|
30 | */ |
|
31 | protected function getArray($item): array |
|
32 | { |
|
33 | return [ |
|
34 | self::OPTION_CLASS => get_class($item), |
|
35 | self::OPTION_LABEL => $item->getLabel(), |
|
36 | self::OPTION_IDENTIFIER => $item->getUri(), |
|
37 | self::OPTION_CHILDREN => [], |
|
38 | ]; |
|
39 | } |
|
40 | ||
41 | protected function config() |
|
42 | { |
@@ 36-45 (lines=10) @@ | ||
33 | * @param Prefixed $item |
|
34 | * @return array |
|
35 | */ |
|
36 | protected function getArray($item): array |
|
37 | { |
|
38 | return [ |
|
39 | self::OPTION_CLASS => get_class($item), |
|
40 | self::OPTION_LABEL => $item->getLabel(), |
|
41 | self::OPTION_IDENTIFIER => $item->getUri(), |
|
42 | self::OPTION_PREFIX => $item->getPrefix(), |
|
43 | self::OPTION_CHILDREN => [], |
|
44 | ]; |
|
45 | } |
|
46 | ||
47 | protected function config() |
|
48 | { |