@@ -165,6 +165,7 @@ |
||
| 165 | 165 | |
| 166 | 166 | /** |
| 167 | 167 | * Set group and label from class name it not set. |
| 168 | + * @param string $name |
|
| 168 | 169 | */ |
| 169 | 170 | private function generateFallback($name): void |
| 170 | 171 | { |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | /** |
| 165 | 165 | * render a list element from the FieldDescription. |
| 166 | 166 | * |
| 167 | - * @param object $object |
|
| 167 | + * @param \stdClass $object |
|
| 168 | 168 | * @param array $params |
| 169 | 169 | * |
| 170 | 170 | * @return string |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | /** |
| 246 | 246 | * render a view element. |
| 247 | 247 | * |
| 248 | - * @param object $object |
|
| 248 | + * @param \stdClass $object |
|
| 249 | 249 | * |
| 250 | 250 | * @return string |
| 251 | 251 | */ |
@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | /** |
| 383 | 383 | * Get the identifiers as a string that is safe to use in a url. |
| 384 | 384 | * |
| 385 | - * @param object $model |
|
| 385 | + * @param \stdClass $model |
|
| 386 | 386 | * |
| 387 | 387 | * @return string string representation of the id that is safe to use in a url |
| 388 | 388 | */ |
@@ -404,7 +404,7 @@ discard block |
||
| 404 | 404 | } |
| 405 | 405 | |
| 406 | 406 | /** |
| 407 | - * @return string|bool |
|
| 407 | + * @return string|false |
|
| 408 | 408 | */ |
| 409 | 409 | public function getXEditableType($type) |
| 410 | 410 | { |
@@ -44,6 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * @param ContainerInterface|Pool $adminPool |
| 47 | + * @param string $mosaicBackground |
|
| 47 | 48 | */ |
| 48 | 49 | public function __construct($adminPool, ?string $mosaicBackground = null) |
| 49 | 50 | { |
@@ -80,7 +81,7 @@ discard block |
||
| 80 | 81 | /** |
| 81 | 82 | * @param string $code |
| 82 | 83 | * @param string $action |
| 83 | - * @param array $parameters |
|
| 84 | + * @param string[] $parameters |
|
| 84 | 85 | * @param int $absolute |
| 85 | 86 | * |
| 86 | 87 | * @return string |
@@ -95,8 +96,8 @@ discard block |
||
| 95 | 96 | /** |
| 96 | 97 | * @param string $code |
| 97 | 98 | * @param string $action |
| 98 | - * @param object $object |
|
| 99 | - * @param array $parameters |
|
| 99 | + * @param string $object |
|
| 100 | + * @param string[] $parameters |
|
| 100 | 101 | * @param int $absolute |
| 101 | 102 | * |
| 102 | 103 | * @return string |
@@ -113,6 +114,10 @@ discard block |
||
| 113 | 114 | return $this->mosaicBackground; |
| 114 | 115 | } |
| 115 | 116 | |
| 117 | + /** |
|
| 118 | + * @param string $code |
|
| 119 | + * @param string $action |
|
| 120 | + */ |
|
| 116 | 121 | private function getCodeAction($code, $action): array |
| 117 | 122 | { |
| 118 | 123 | if ($pipe = strpos($code, '|')) { |
@@ -949,6 +949,7 @@ discard block |
||
| 949 | 949 | |
| 950 | 950 | /** |
| 951 | 951 | * NEXT_MAJOR: remove this method. |
| 952 | + * @param string $subClass |
|
| 952 | 953 | */ |
| 953 | 954 | public function addSubClass($subClass): void |
| 954 | 955 | { |
@@ -1104,6 +1105,10 @@ discard block |
||
| 1104 | 1105 | return $this->routeGenerator->hasAdminRoute($this, $name); |
| 1105 | 1106 | } |
| 1106 | 1107 | |
| 1108 | + /** |
|
| 1109 | + * @param string $name |
|
| 1110 | + * @param string $adminCode |
|
| 1111 | + */ |
|
| 1107 | 1112 | public function isCurrentRoute($name, $adminCode = null) |
| 1108 | 1113 | { |
| 1109 | 1114 | if (!$this->hasRequest()) { |
@@ -2130,7 +2135,7 @@ discard block |
||
| 2130 | 2135 | * |
| 2131 | 2136 | * @param string $context |
| 2132 | 2137 | * |
| 2133 | - * @return array |
|
| 2138 | + * @return string[] |
|
| 2134 | 2139 | */ |
| 2135 | 2140 | public function getPermissionsShow($context) |
| 2136 | 2141 | { |
@@ -2408,6 +2413,7 @@ discard block |
||
| 2408 | 2413 | |
| 2409 | 2414 | /** |
| 2410 | 2415 | * {@inheritdoc} |
| 2416 | + * @param string $action |
|
| 2411 | 2417 | */ |
| 2412 | 2418 | public function hasAccess($action, $object = null) |
| 2413 | 2419 | { |
@@ -2532,6 +2538,7 @@ discard block |
||
| 2532 | 2538 | |
| 2533 | 2539 | /** |
| 2534 | 2540 | * {@inheritdoc} |
| 2541 | + * @param boolean $isShown |
|
| 2535 | 2542 | */ |
| 2536 | 2543 | final public function showMosaicButton($isShown): void |
| 2537 | 2544 | { |
@@ -2652,6 +2659,9 @@ discard block |
||
| 2652 | 2659 | { |
| 2653 | 2660 | } |
| 2654 | 2661 | |
| 2662 | + /** |
|
| 2663 | + * @param string $action |
|
| 2664 | + */ |
|
| 2655 | 2665 | protected function configureActionButtons($buttonList, $action, $object = null) |
| 2656 | 2666 | { |
| 2657 | 2667 | return $buttonList; |
@@ -2673,6 +2683,7 @@ discard block |
||
| 2673 | 2683 | * NEXT_MAJOR: remove this method. |
| 2674 | 2684 | * |
| 2675 | 2685 | * @deprecated Use configureTabMenu instead |
| 2686 | + * @param string $action |
|
| 2676 | 2687 | */ |
| 2677 | 2688 | protected function configureSideMenu(MenuItemInterface $menu, $action, AdminInterface $childAdmin = null) |
| 2678 | 2689 | { |