| @@ 409-423 (lines=15) @@ | ||
| 406 | /** |
|
| 407 | * @return string |
|
| 408 | */ |
|
| 409 | protected function getIcon(): string |
|
| 410 | { |
|
| 411 | $moduleConfiguration = $this->getExistingMainConfiguration(); |
|
| 412 | ||
| 413 | ||
| 414 | if ($this->icon) { |
|
| 415 | $icon = $this->icon; |
|
| 416 | } elseif ($moduleConfiguration['icon']) { // existing configuration may override. |
|
| 417 | $icon = $moduleConfiguration['icon']; |
|
| 418 | } else { |
|
| 419 | $icon = ''; //default value. |
|
| 420 | } |
|
| 421 | ||
| 422 | return $icon; |
|
| 423 | } |
|
| 424 | ||
| 425 | /** |
|
| 426 | * @param string $mainModule |
|
| @@ 927-939 (lines=13) @@ | ||
| 924 | /** |
|
| 925 | * @return string |
|
| 926 | */ |
|
| 927 | protected function getAccess(): string |
|
| 928 | { |
|
| 929 | $moduleConfiguration = $this->getExistingMainConfiguration(); |
|
| 930 | ||
| 931 | if ($this->access !== null) { |
|
| 932 | $access = $this->access; |
|
| 933 | } elseif ($moduleConfiguration['access']) { // existing configuration may override. |
|
| 934 | $access = $moduleConfiguration['access']; |
|
| 935 | } else { |
|
| 936 | $access = Access::USER; //default value. |
|
| 937 | } |
|
| 938 | return $access; |
|
| 939 | } |
|
| 940 | ||
| 941 | /** |
|
| 942 | * @param string $access |
|