@@ -945,6 +945,7 @@ discard block |
||
| 945 | 945 | |
| 946 | 946 | /** |
| 947 | 947 | * NEXT_MAJOR: remove this method. |
| 948 | + * @param string $subClass |
|
| 948 | 949 | */ |
| 949 | 950 | public function addSubClass($subClass): void |
| 950 | 951 | { |
@@ -1073,6 +1074,9 @@ discard block |
||
| 1073 | 1074 | return $this->routeGenerator->hasAdminRoute($this, $name); |
| 1074 | 1075 | } |
| 1075 | 1076 | |
| 1077 | + /** |
|
| 1078 | + * @param string $adminCode |
|
| 1079 | + */ |
|
| 1076 | 1080 | public function isCurrentRoute(string $name, ?string $adminCode = null): bool |
| 1077 | 1081 | { |
| 1078 | 1082 | if (!$this->hasRequest()) { |
@@ -1320,6 +1324,9 @@ discard block |
||
| 1320 | 1324 | return $this->baseControllerName; |
| 1321 | 1325 | } |
| 1322 | 1326 | |
| 1327 | + /** |
|
| 1328 | + * @param string $label |
|
| 1329 | + */ |
|
| 1323 | 1330 | public function setLabel(?string $label): void |
| 1324 | 1331 | { |
| 1325 | 1332 | $this->label = $label; |
@@ -2030,6 +2037,9 @@ discard block |
||
| 2030 | 2037 | return $this->managerType; |
| 2031 | 2038 | } |
| 2032 | 2039 | |
| 2040 | + /** |
|
| 2041 | + * @param string $type |
|
| 2042 | + */ |
|
| 2033 | 2043 | public function setManagerType(?string $type): void |
| 2034 | 2044 | { |
| 2035 | 2045 | $this->managerType = $type; |
@@ -2440,6 +2450,7 @@ discard block |
||
| 2440 | 2450 | |
| 2441 | 2451 | /** |
| 2442 | 2452 | * {@inheritdoc} |
| 2453 | + * @param boolean $isShown |
|
| 2443 | 2454 | */ |
| 2444 | 2455 | final public function showMosaicButton($isShown): void |
| 2445 | 2456 | { |
@@ -2574,6 +2585,7 @@ discard block |
||
| 2574 | 2585 | * NEXT_MAJOR: remove this method. |
| 2575 | 2586 | * |
| 2576 | 2587 | * @deprecated Use configureTabMenu instead |
| 2588 | + * @param string $action |
|
| 2577 | 2589 | */ |
| 2578 | 2590 | protected function configureSideMenu(MenuItemInterface $menu, $action, AdminInterface $childAdmin = null): void |
| 2579 | 2591 | { |
@@ -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 | |
@@ -138,7 +165,7 @@ discard block |
||
| 138 | 165 | /** |
| 139 | 166 | * Returns a form depend on the given $object. |
| 140 | 167 | * |
| 141 | - * @return FormInterface |
|
| 168 | + * @return \Symfony\Component\Form\Form|null |
|
| 142 | 169 | */ |
| 143 | 170 | public function getForm(); |
| 144 | 171 | |
@@ -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 | |
@@ -616,6 +690,7 @@ discard block |
||
| 616 | 690 | |
| 617 | 691 | /** |
| 618 | 692 | * Set the current child status. |
| 693 | + * @return void |
|
| 619 | 694 | */ |
| 620 | 695 | public function setCurrentChild(bool $currentChild); |
| 621 | 696 | |
@@ -649,6 +724,7 @@ discard block |
||
| 649 | 724 | |
| 650 | 725 | /** |
| 651 | 726 | * @param string $mode |
| 727 | + * @return void |
|
| 652 | 728 | */ |
| 653 | 729 | public function setListMode($mode); |
| 654 | 730 | |
@@ -682,12 +758,14 @@ discard block |
||
| 682 | 758 | * Returns the result link for an object. |
| 683 | 759 | * |
| 684 | 760 | * @param object $object |
| 761 | + * @return string|null |
|
| 685 | 762 | */ |
| 686 | 763 | public function getSearchResultLink($object): ?string; |
| 687 | 764 | |
| 688 | 765 | /** |
| 689 | 766 | * Setting to true will enable mosaic button for the admin screen. |
| 690 | 767 | * Setting to false will hide mosaic button for the admin screen. |
| 768 | + * @return void |
|
| 691 | 769 | */ |
| 692 | 770 | public function showMosaicButton(bool $isShown): void; |
| 693 | 771 | |