@@ -35,6 +35,9 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | interface AdminInterface extends AccessRegistryInterface, FieldDescriptionRegistryInterface, LifecycleHookProviderInterface, MenuBuilderInterface, ParentAdminInterface, UrlGeneratorInterface |
| 37 | 37 | { |
| 38 | + /** |
|
| 39 | + * @return void |
|
| 40 | + */ |
|
| 38 | 41 | public function setMenuFactory(MenuFactoryInterface $menuFactory); |
| 39 | 42 | |
| 40 | 43 | /** |
@@ -42,8 +45,14 @@ discard block |
||
| 42 | 45 | */ |
| 43 | 46 | public function getMenuFactory(); |
| 44 | 47 | |
| 48 | + /** |
|
| 49 | + * @return void |
|
| 50 | + */ |
|
| 45 | 51 | public function setFormContractor(FormContractorInterface $formContractor); |
| 46 | 52 | |
| 53 | + /** |
|
| 54 | + * @return void |
|
| 55 | + */ |
|
| 47 | 56 | public function setListBuilder(ListBuilderInterface $listBuilder); |
| 48 | 57 | |
| 49 | 58 | /** |
@@ -51,6 +60,9 @@ discard block |
||
| 51 | 60 | */ |
| 52 | 61 | public function getListBuilder(); |
| 53 | 62 | |
| 63 | + /** |
|
| 64 | + * @return void |
|
| 65 | + */ |
|
| 54 | 66 | public function setDatagridBuilder(DatagridBuilderInterface $datagridBuilder); |
| 55 | 67 | |
| 56 | 68 | /** |
@@ -58,6 +70,9 @@ discard block |
||
| 58 | 70 | */ |
| 59 | 71 | public function getDatagridBuilder(); |
| 60 | 72 | |
| 73 | + /** |
|
| 74 | + * @return void |
|
| 75 | + */ |
|
| 61 | 76 | public function setTranslator(TranslatorInterface $translator); |
| 62 | 77 | |
| 63 | 78 | /** |
@@ -65,8 +80,14 @@ discard block |
||
| 65 | 80 | */ |
| 66 | 81 | public function getTranslator(); |
| 67 | 82 | |
| 83 | + /** |
|
| 84 | + * @return void |
|
| 85 | + */ |
|
| 68 | 86 | public function setRequest(Request $request); |
| 69 | 87 | |
| 88 | + /** |
|
| 89 | + * @return void |
|
| 90 | + */ |
|
| 70 | 91 | public function setConfigurationPool(Pool $pool); |
| 71 | 92 | |
| 72 | 93 | /** |
@@ -79,6 +100,9 @@ discard block |
||
| 79 | 100 | */ |
| 80 | 101 | public function getClass(); |
| 81 | 102 | |
| 103 | + /** |
|
| 104 | + * @return void |
|
| 105 | + */ |
|
| 82 | 106 | public function attachAdminClass(FieldDescriptionInterface $fieldDescription); |
| 83 | 107 | |
| 84 | 108 | /** |
@@ -90,6 +114,7 @@ discard block |
||
| 90 | 114 | * Set base controller name. |
| 91 | 115 | * |
| 92 | 116 | * @param string $baseControllerName |
| 117 | + * @return void |
|
| 93 | 118 | */ |
| 94 | 119 | public function setBaseControllerName($baseControllerName); |
| 95 | 120 | |
@@ -102,6 +127,7 @@ discard block |
||
| 102 | 127 | |
| 103 | 128 | /** |
| 104 | 129 | * Sets a list of templates. |
| 130 | + * @return void |
|
| 105 | 131 | */ |
| 106 | 132 | public function setTemplates(array $templates); |
| 107 | 133 | |
@@ -110,6 +136,7 @@ discard block |
||
| 110 | 136 | * |
| 111 | 137 | * @param string $name |
| 112 | 138 | * @param string $template |
| 139 | + * @return void |
|
| 113 | 140 | */ |
| 114 | 141 | public function setTemplate($name, $template); |
| 115 | 142 | |
@@ -175,6 +202,9 @@ discard block |
||
| 175 | 202 | */ |
| 176 | 203 | public function getSecurityInformation(); |
| 177 | 204 | |
| 205 | + /** |
|
| 206 | + * @return void |
|
| 207 | + */ |
|
| 178 | 208 | public function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription); |
| 179 | 209 | |
| 180 | 210 | /** |
@@ -222,6 +252,9 @@ discard block |
||
| 222 | 252 | */ |
| 223 | 253 | public function hasRoute($name); |
| 224 | 254 | |
| 255 | + /** |
|
| 256 | + * @return void |
|
| 257 | + */ |
|
| 225 | 258 | public function setSecurityHandler(SecurityHandlerInterface $securityHandler); |
| 226 | 259 | |
| 227 | 260 | /** |
@@ -249,10 +282,13 @@ discard block |
||
| 249 | 282 | * |
| 250 | 283 | * @param object $entity |
| 251 | 284 | * |
| 252 | - * @return mixed |
|
| 285 | + * @return string |
|
| 253 | 286 | */ |
| 254 | 287 | public function id($entity); |
| 255 | 288 | |
| 289 | + /** |
|
| 290 | + * @return void |
|
| 291 | + */ |
|
| 256 | 292 | public function setValidator(ValidatorInterface $validator); |
| 257 | 293 | |
| 258 | 294 | /** |
@@ -265,6 +301,9 @@ discard block |
||
| 265 | 301 | */ |
| 266 | 302 | public function getShow(); |
| 267 | 303 | |
| 304 | + /** |
|
| 305 | + * @return void |
|
| 306 | + */ |
|
| 268 | 307 | public function setFormTheme(array $formTheme); |
| 269 | 308 | |
| 270 | 309 | /** |
@@ -272,6 +311,9 @@ discard block |
||
| 272 | 311 | */ |
| 273 | 312 | public function getFormTheme(); |
| 274 | 313 | |
| 314 | + /** |
|
| 315 | + * @return void |
|
| 316 | + */ |
|
| 275 | 317 | public function setFilterTheme(array $filterTheme); |
| 276 | 318 | |
| 277 | 319 | /** |
@@ -279,6 +321,9 @@ discard block |
||
| 279 | 321 | */ |
| 280 | 322 | public function getFilterTheme(); |
| 281 | 323 | |
| 324 | + /** |
|
| 325 | + * @return void |
|
| 326 | + */ |
|
| 282 | 327 | public function addExtension(AdminExtensionInterface $extension); |
| 283 | 328 | |
| 284 | 329 | /** |
@@ -288,6 +333,9 @@ discard block |
||
| 288 | 333 | */ |
| 289 | 334 | public function getExtensions(); |
| 290 | 335 | |
| 336 | + /** |
|
| 337 | + * @return void |
|
| 338 | + */ |
|
| 291 | 339 | public function setRouteBuilder(RouteBuilderInterface $routeBuilder); |
| 292 | 340 | |
| 293 | 341 | /** |
@@ -302,6 +350,9 @@ discard block |
||
| 302 | 350 | */ |
| 303 | 351 | public function toString($object); |
| 304 | 352 | |
| 353 | + /** |
|
| 354 | + * @return void |
|
| 355 | + */ |
|
| 305 | 356 | public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy); |
| 306 | 357 | |
| 307 | 358 | /** |
@@ -325,6 +376,7 @@ discard block |
||
| 325 | 376 | |
| 326 | 377 | /** |
| 327 | 378 | * @param string $uniqId |
| 379 | + * @return void |
|
| 328 | 380 | */ |
| 329 | 381 | public function setUniqid($uniqId); |
| 330 | 382 | |
@@ -351,6 +403,7 @@ discard block |
||
| 351 | 403 | |
| 352 | 404 | /** |
| 353 | 405 | * @param object|null $subject |
| 406 | + * @return void |
|
| 354 | 407 | */ |
| 355 | 408 | public function setSubject($subject); |
| 356 | 409 | |
@@ -408,6 +461,7 @@ discard block |
||
| 408 | 461 | * |
| 409 | 462 | * @param string $actionName |
| 410 | 463 | * @param bool $allElements |
| 464 | + * @return void |
|
| 411 | 465 | */ |
| 412 | 466 | public function preBatchAction($actionName, ProxyQueryInterface $query, array &$idx, $allElements); |
| 413 | 467 | |
@@ -432,6 +486,7 @@ discard block |
||
| 432 | 486 | * |
| 433 | 487 | * @deprecated this feature cannot be stable, use a custom validator, |
| 434 | 488 | * the feature will be removed with Symfony 2.2 |
| 489 | + * @return void |
|
| 435 | 490 | */ |
| 436 | 491 | public function validate(ErrorElement $errorElement, $object); |
| 437 | 492 | |
@@ -446,6 +501,7 @@ discard block |
||
| 446 | 501 | * Add object security, fe. make the current user owner of the object. |
| 447 | 502 | * |
| 448 | 503 | * @param object $object |
| 504 | + * @return void |
|
| 449 | 505 | */ |
| 450 | 506 | public function createObjectSecurity($object); |
| 451 | 507 | |
@@ -454,6 +510,9 @@ discard block |
||
| 454 | 510 | */ |
| 455 | 511 | public function getParent(); |
| 456 | 512 | |
| 513 | + /** |
|
| 514 | + * @return void |
|
| 515 | + */ |
|
| 457 | 516 | public function setParent(self $admin); |
| 458 | 517 | |
| 459 | 518 | /** |
@@ -467,6 +526,7 @@ discard block |
||
| 467 | 526 | * Set the translation domain. |
| 468 | 527 | * |
| 469 | 528 | * @param string $translationDomain the translation domain |
| 529 | + * @return void |
|
| 470 | 530 | */ |
| 471 | 531 | public function setTranslationDomain($translationDomain); |
| 472 | 532 | |
@@ -486,21 +546,29 @@ discard block |
||
| 486 | 546 | |
| 487 | 547 | /** |
| 488 | 548 | * Set the form groups. |
| 549 | + * @return void |
|
| 489 | 550 | */ |
| 490 | 551 | public function setFormGroups(array $formGroups); |
| 491 | 552 | |
| 492 | 553 | public function getFormTabs(); |
| 493 | 554 | |
| 555 | + /** |
|
| 556 | + * @return void |
|
| 557 | + */ |
|
| 494 | 558 | public function setFormTabs(array $formTabs); |
| 495 | 559 | |
| 496 | 560 | public function getShowTabs(); |
| 497 | 561 | |
| 562 | + /** |
|
| 563 | + * @return void |
|
| 564 | + */ |
|
| 498 | 565 | public function setShowTabs(array $showTabs); |
| 499 | 566 | |
| 500 | 567 | /** |
| 501 | 568 | * Remove a form group field. |
| 502 | 569 | * |
| 503 | 570 | * @param string $key |
| 571 | + * @return void |
|
| 504 | 572 | */ |
| 505 | 573 | public function removeFieldFromFormGroup($key); |
| 506 | 574 | |
@@ -513,6 +581,7 @@ discard block |
||
| 513 | 581 | |
| 514 | 582 | /** |
| 515 | 583 | * Set the show groups. |
| 584 | + * @return void |
|
| 516 | 585 | */ |
| 517 | 586 | public function setShowGroups(array $showGroups); |
| 518 | 587 | |
@@ -520,6 +589,7 @@ discard block |
||
| 520 | 589 | * Reorder items in showGroup. |
| 521 | 590 | * |
| 522 | 591 | * @param string $group |
| 592 | + * @return void |
|
| 523 | 593 | */ |
| 524 | 594 | public function reorderShowGroup($group, array $keys); |
| 525 | 595 | |
@@ -527,6 +597,7 @@ discard block |
||
| 527 | 597 | * add a FieldDescription. |
| 528 | 598 | * |
| 529 | 599 | * @param string $name |
| 600 | + * @return void |
|
| 530 | 601 | */ |
| 531 | 602 | public function addFormFieldDescription($name, FieldDescriptionInterface $fieldDescription); |
| 532 | 603 | |
@@ -534,6 +605,7 @@ discard block |
||
| 534 | 605 | * Remove a FieldDescription. |
| 535 | 606 | * |
| 536 | 607 | * @param string $name |
| 608 | + * @return void |
|
| 537 | 609 | */ |
| 538 | 610 | public function removeFormFieldDescription($name); |
| 539 | 611 | |
@@ -553,11 +625,13 @@ discard block |
||
| 553 | 625 | * Adds a new class to a list of supported sub classes. |
| 554 | 626 | * |
| 555 | 627 | * @param $subClass |
| 628 | + * @return void |
|
| 556 | 629 | */ |
| 557 | 630 | public function addSubClass($subClass); |
| 558 | 631 | |
| 559 | 632 | /** |
| 560 | 633 | * Sets the list of supported sub classes. |
| 634 | + * @return void |
|
| 561 | 635 | */ |
| 562 | 636 | public function setSubClasses(array $subClasses); |
| 563 | 637 | |
@@ -618,6 +692,7 @@ discard block |
||
| 618 | 692 | * Set the current child status. |
| 619 | 693 | * |
| 620 | 694 | * @param bool $currentChild |
| 695 | + * @return void |
|
| 621 | 696 | */ |
| 622 | 697 | public function setCurrentChild($currentChild); |
| 623 | 698 | |
@@ -653,6 +728,7 @@ discard block |
||
| 653 | 728 | |
| 654 | 729 | /** |
| 655 | 730 | * @param string $mode |
| 731 | + * @return void |
|
| 656 | 732 | */ |
| 657 | 733 | public function setListMode($mode); |
| 658 | 734 | |
@@ -686,12 +762,14 @@ discard block |
||
| 686 | 762 | * Returns the result link for an object. |
| 687 | 763 | * |
| 688 | 764 | * @param object $object |
| 765 | + * @return string|null |
|
| 689 | 766 | */ |
| 690 | 767 | public function getSearchResultLink($object): ?string; |
| 691 | 768 | |
| 692 | 769 | /** |
| 693 | 770 | * Setting to true will enable mosaic button for the admin screen. |
| 694 | 771 | * Setting to false will hide mosaic button for the admin screen. |
| 772 | + * @return void |
|
| 695 | 773 | */ |
| 696 | 774 | public function showMosaicButton(bool $isShown): void; |
| 697 | 775 | |
@@ -942,6 +942,7 @@ discard block |
||
| 942 | 942 | |
| 943 | 943 | /** |
| 944 | 944 | * NEXT_MAJOR: remove this method. |
| 945 | + * @param string $subClass |
|
| 945 | 946 | */ |
| 946 | 947 | public function addSubClass($subClass): void |
| 947 | 948 | { |
@@ -1097,6 +1098,9 @@ discard block |
||
| 1097 | 1098 | return $this->routeGenerator->hasAdminRoute($this, $name); |
| 1098 | 1099 | } |
| 1099 | 1100 | |
| 1101 | + /** |
|
| 1102 | + * @param string $adminCode |
|
| 1103 | + */ |
|
| 1100 | 1104 | public function isCurrentRoute(string $name, ?string $adminCode = null): bool |
| 1101 | 1105 | { |
| 1102 | 1106 | if (!$this->hasRequest()) { |
@@ -2119,7 +2123,7 @@ discard block |
||
| 2119 | 2123 | * |
| 2120 | 2124 | * @param string $context |
| 2121 | 2125 | * |
| 2122 | - * @return array |
|
| 2126 | + * @return string[] |
|
| 2123 | 2127 | */ |
| 2124 | 2128 | public function getPermissionsShow($context) |
| 2125 | 2129 | { |
@@ -2515,6 +2519,7 @@ discard block |
||
| 2515 | 2519 | |
| 2516 | 2520 | /** |
| 2517 | 2521 | * {@inheritdoc} |
| 2522 | + * @param boolean $isShown |
|
| 2518 | 2523 | */ |
| 2519 | 2524 | final public function showMosaicButton($isShown): void |
| 2520 | 2525 | { |
@@ -2651,6 +2656,7 @@ discard block |
||
| 2651 | 2656 | * NEXT_MAJOR: remove this method. |
| 2652 | 2657 | * |
| 2653 | 2658 | * @deprecated Use configureTabMenu instead |
| 2659 | + * @param string $action |
|
| 2654 | 2660 | */ |
| 2655 | 2661 | protected function configureSideMenu(ItemInterface $menu, $action, AdminInterface $childAdmin = null) |
| 2656 | 2662 | { |