@@ -936,6 +936,7 @@ discard block |
||
| 936 | 936 | |
| 937 | 937 | /** |
| 938 | 938 | * NEXT_MAJOR: remove this method. |
| 939 | + * @param string $subClass |
|
| 939 | 940 | */ |
| 940 | 941 | public function addSubClass($subClass): void |
| 941 | 942 | { |
@@ -1064,6 +1065,9 @@ discard block |
||
| 1064 | 1065 | return $this->routeGenerator->hasAdminRoute($this, $name); |
| 1065 | 1066 | } |
| 1066 | 1067 | |
| 1068 | + /** |
|
| 1069 | + * @param string $adminCode |
|
| 1070 | + */ |
|
| 1067 | 1071 | public function isCurrentRoute(string $name, ?string $adminCode = null): bool |
| 1068 | 1072 | { |
| 1069 | 1073 | if (!$this->hasRequest()) { |
@@ -1309,6 +1313,9 @@ discard block |
||
| 1309 | 1313 | return $this->baseControllerName; |
| 1310 | 1314 | } |
| 1311 | 1315 | |
| 1316 | + /** |
|
| 1317 | + * @param string $label |
|
| 1318 | + */ |
|
| 1312 | 1319 | public function setLabel(?string $label): void |
| 1313 | 1320 | { |
| 1314 | 1321 | $this->label = $label; |
@@ -1809,6 +1816,7 @@ discard block |
||
| 1809 | 1816 | * |
| 1810 | 1817 | * NEXT_MAJOR: remove this method |
| 1811 | 1818 | * |
| 1819 | + * @param string $domain |
|
| 1812 | 1820 | * @return string the translated string |
| 1813 | 1821 | * |
| 1814 | 1822 | * @deprecated since sonata-project/admin-bundle 3.9, to be removed with 4.0 |
@@ -1989,6 +1997,9 @@ discard block |
||
| 1989 | 1997 | return $this->managerType; |
| 1990 | 1998 | } |
| 1991 | 1999 | |
| 2000 | + /** |
|
| 2001 | + * @param string $type |
|
| 2002 | + */ |
|
| 1992 | 2003 | public function setManagerType(?string $type): void |
| 1993 | 2004 | { |
| 1994 | 2005 | $this->managerType = $type; |
@@ -2399,6 +2410,7 @@ discard block |
||
| 2399 | 2410 | |
| 2400 | 2411 | /** |
| 2401 | 2412 | * {@inheritdoc} |
| 2413 | + * @param boolean $isShown |
|
| 2402 | 2414 | */ |
| 2403 | 2415 | final public function showMosaicButton($isShown): void |
| 2404 | 2416 | { |
@@ -2528,6 +2540,7 @@ discard block |
||
| 2528 | 2540 | * NEXT_MAJOR: remove this method. |
| 2529 | 2541 | * |
| 2530 | 2542 | * @deprecated Use configureTabMenu instead |
| 2543 | + * @param string $action |
|
| 2531 | 2544 | */ |
| 2532 | 2545 | protected function configureSideMenu(MenuItemInterface $menu, $action, AdminInterface $childAdmin = null): void |
| 2533 | 2546 | { |
@@ -37,26 +37,59 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | interface AdminInterface extends AccessRegistryInterface, FieldDescriptionRegistryInterface, LifecycleHookProviderInterface, MenuBuilderInterface, ParentAdminInterface, UrlGeneratorInterface |
| 39 | 39 | { |
| 40 | + /** |
|
| 41 | + * @return void |
|
| 42 | + */ |
|
| 40 | 43 | public function setMenuFactory(MenuFactoryInterface $menuFactory): void; |
| 41 | 44 | |
| 45 | + /** |
|
| 46 | + * @return MenuFactoryInterface |
|
| 47 | + */ |
|
| 42 | 48 | public function getMenuFactory(): ?MenuFactoryInterface; |
| 43 | 49 | |
| 50 | + /** |
|
| 51 | + * @return void |
|
| 52 | + */ |
|
| 44 | 53 | public function setFormContractor(FormContractorInterface $formContractor): void; |
| 45 | 54 | |
| 55 | + /** |
|
| 56 | + * @return void |
|
| 57 | + */ |
|
| 46 | 58 | public function setListBuilder(ListBuilderInterface $listBuilder): void; |
| 47 | 59 | |
| 60 | + /** |
|
| 61 | + * @return ListBuilderInterface |
|
| 62 | + */ |
|
| 48 | 63 | public function getListBuilder(): ?ListBuilderInterface; |
| 49 | 64 | |
| 65 | + /** |
|
| 66 | + * @return void |
|
| 67 | + */ |
|
| 50 | 68 | public function setDatagridBuilder(DatagridBuilderInterface $datagridBuilder): void; |
| 51 | 69 | |
| 70 | + /** |
|
| 71 | + * @return DatagridBuilderInterface |
|
| 72 | + */ |
|
| 52 | 73 | public function getDatagridBuilder(): ?DatagridBuilderInterface; |
| 53 | 74 | |
| 75 | + /** |
|
| 76 | + * @return void |
|
| 77 | + */ |
|
| 54 | 78 | public function setTranslator(TranslatorInterface $translator): void; |
| 55 | 79 | |
| 80 | + /** |
|
| 81 | + * @return TranslatorInterface |
|
| 82 | + */ |
|
| 56 | 83 | public function getTranslator(): ?TranslatorInterface; |
| 57 | 84 | |
| 85 | + /** |
|
| 86 | + * @return void |
|
| 87 | + */ |
|
| 58 | 88 | public function setRequest(Request $request): void; |
| 59 | 89 | |
| 90 | + /** |
|
| 91 | + * @return void |
|
| 92 | + */ |
|
| 60 | 93 | public function setConfigurationPool(Pool $pool): void; |
| 61 | 94 | |
| 62 | 95 | /** |
@@ -67,14 +100,21 @@ discard block |
||
| 67 | 100 | */ |
| 68 | 101 | public function getClass(): string; |
| 69 | 102 | |
| 103 | + /** |
|
| 104 | + * @return void |
|
| 105 | + */ |
|
| 70 | 106 | public function attachAdminClass(FieldDescriptionInterface $fieldDescription): void; |
| 71 | 107 | |
| 108 | + /** |
|
| 109 | + * @return DatagridInterface|null |
|
| 110 | + */ |
|
| 72 | 111 | public function getDatagrid(): ?DatagridInterface; |
| 73 | 112 | |
| 74 | 113 | /** |
| 75 | 114 | * Set base controller name. |
| 76 | 115 | * |
| 77 | 116 | * @param string $baseControllerName |
| 117 | + * @return void |
|
| 78 | 118 | */ |
| 79 | 119 | public function setBaseControllerName($baseControllerName): void; |
| 80 | 120 | |
@@ -85,6 +125,7 @@ discard block |
||
| 85 | 125 | |
| 86 | 126 | /** |
| 87 | 127 | * Sets a list of templates. |
| 128 | + * @return void |
|
| 88 | 129 | */ |
| 89 | 130 | public function setTemplates(array $templates): void; |
| 90 | 131 | |
@@ -93,9 +134,13 @@ discard block |
||
| 93 | 134 | * |
| 94 | 135 | * @param string $name |
| 95 | 136 | * @param string $template |
| 137 | + * @return void |
|
| 96 | 138 | */ |
| 97 | 139 | public function setTemplate($name, $template): void; |
| 98 | 140 | |
| 141 | + /** |
|
| 142 | + * @return ModelManagerInterface |
|
| 143 | + */ |
|
| 99 | 144 | public function getModelManager(): ?ModelManagerInterface; |
| 100 | 145 | |
| 101 | 146 | /** |
@@ -115,6 +160,7 @@ discard block |
||
| 115 | 160 | |
| 116 | 161 | /** |
| 117 | 162 | * Returns a form depend on the given $object. |
| 163 | + * @return \Symfony\Component\Form\Form|null |
|
| 118 | 164 | */ |
| 119 | 165 | public function getForm(): ?FormInterface; |
| 120 | 166 | |
@@ -145,6 +191,9 @@ discard block |
||
| 145 | 191 | */ |
| 146 | 192 | public function getSecurityInformation(): array; |
| 147 | 193 | |
| 194 | + /** |
|
| 195 | + * @return void |
|
| 196 | + */ |
|
| 148 | 197 | public function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription): void; |
| 149 | 198 | |
| 150 | 199 | /** |
@@ -188,8 +237,14 @@ discard block |
||
| 188 | 237 | */ |
| 189 | 238 | public function hasRoute($name): bool; |
| 190 | 239 | |
| 240 | + /** |
|
| 241 | + * @return void |
|
| 242 | + */ |
|
| 191 | 243 | public function setSecurityHandler(SecurityHandlerInterface $securityHandler): void; |
| 192 | 244 | |
| 245 | + /** |
|
| 246 | + * @return SecurityHandlerInterface |
|
| 247 | + */ |
|
| 193 | 248 | public function getSecurityHandler(): ?SecurityHandlerInterface; |
| 194 | 249 | |
| 195 | 250 | /** |
@@ -210,16 +265,28 @@ discard block |
||
| 210 | 265 | * |
| 211 | 266 | * @param object $entity |
| 212 | 267 | * |
| 213 | - * @return mixed |
|
| 268 | + * @return string |
|
| 214 | 269 | */ |
| 215 | 270 | public function id($entity); |
| 216 | 271 | |
| 272 | + /** |
|
| 273 | + * @return void |
|
| 274 | + */ |
|
| 217 | 275 | public function setValidator(ValidatorInterface $validator): void; |
| 218 | 276 | |
| 277 | + /** |
|
| 278 | + * @return ValidatorInterface |
|
| 279 | + */ |
|
| 219 | 280 | public function getValidator(): ?ValidatorInterface; |
| 220 | 281 | |
| 282 | + /** |
|
| 283 | + * @return FieldDescriptionCollection|null |
|
| 284 | + */ |
|
| 221 | 285 | public function getShow(): ?FieldDescriptionCollection; |
| 222 | 286 | |
| 287 | + /** |
|
| 288 | + * @return void |
|
| 289 | + */ |
|
| 223 | 290 | public function setFormTheme(array $formTheme): void; |
| 224 | 291 | |
| 225 | 292 | /** |
@@ -227,6 +294,9 @@ discard block |
||
| 227 | 294 | */ |
| 228 | 295 | public function getFormTheme(): array; |
| 229 | 296 | |
| 297 | + /** |
|
| 298 | + * @return void |
|
| 299 | + */ |
|
| 230 | 300 | public function setFilterTheme(array $filterTheme): void; |
| 231 | 301 | |
| 232 | 302 | /** |
@@ -234,6 +304,9 @@ discard block |
||
| 234 | 304 | */ |
| 235 | 305 | public function getFilterTheme(): array; |
| 236 | 306 | |
| 307 | + /** |
|
| 308 | + * @return void |
|
| 309 | + */ |
|
| 237 | 310 | public function addExtension(AdminExtensionInterface $extension): void; |
| 238 | 311 | |
| 239 | 312 | /** |
@@ -243,8 +316,14 @@ discard block |
||
| 243 | 316 | */ |
| 244 | 317 | public function getExtensions(): array; |
| 245 | 318 | |
| 319 | + /** |
|
| 320 | + * @return void |
|
| 321 | + */ |
|
| 246 | 322 | public function setRouteBuilder(RouteBuilderInterface $routeBuilder): void; |
| 247 | 323 | |
| 324 | + /** |
|
| 325 | + * @return RouteBuilderInterface |
|
| 326 | + */ |
|
| 248 | 327 | public function getRouteBuilder(): ?RouteBuilderInterface; |
| 249 | 328 | |
| 250 | 329 | /** |
@@ -252,8 +331,14 @@ discard block |
||
| 252 | 331 | */ |
| 253 | 332 | public function toString($object): string; |
| 254 | 333 | |
| 334 | + /** |
|
| 335 | + * @return void |
|
| 336 | + */ |
|
| 255 | 337 | public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy): void; |
| 256 | 338 | |
| 339 | + /** |
|
| 340 | + * @return LabelTranslatorStrategyInterface |
|
| 341 | + */ |
|
| 257 | 342 | public function getLabelTranslatorStrategy(): ?LabelTranslatorStrategyInterface; |
| 258 | 343 | |
| 259 | 344 | /** |
@@ -270,6 +355,7 @@ discard block |
||
| 270 | 355 | |
| 271 | 356 | /** |
| 272 | 357 | * @param string $uniqId |
| 358 | + * @return void |
|
| 273 | 359 | */ |
| 274 | 360 | public function setUniqid($uniqId): void; |
| 275 | 361 | |
@@ -292,6 +378,7 @@ discard block |
||
| 292 | 378 | |
| 293 | 379 | /** |
| 294 | 380 | * @param object|null $subject |
| 381 | + * @return void |
|
| 295 | 382 | */ |
| 296 | 383 | public function setSubject($subject): void; |
| 297 | 384 | |
@@ -338,6 +425,7 @@ discard block |
||
| 338 | 425 | * |
| 339 | 426 | * @param string $actionName |
| 340 | 427 | * @param bool $allElements |
| 428 | + * @return void |
|
| 341 | 429 | */ |
| 342 | 430 | public function preBatchAction($actionName, ProxyQueryInterface $query, array &$idx, $allElements): void; |
| 343 | 431 | |
@@ -360,6 +448,7 @@ discard block |
||
| 360 | 448 | * |
| 361 | 449 | * @deprecated this feature cannot be stable, use a custom validator, |
| 362 | 450 | * the feature will be removed with Symfony 2.2 |
| 451 | + * @return void |
|
| 363 | 452 | */ |
| 364 | 453 | public function validate(ErrorElement $errorElement, $object): void; |
| 365 | 454 | |
@@ -372,11 +461,18 @@ discard block |
||
| 372 | 461 | * Add object security, fe. make the current user owner of the object. |
| 373 | 462 | * |
| 374 | 463 | * @param object $object |
| 464 | + * @return void |
|
| 375 | 465 | */ |
| 376 | 466 | public function createObjectSecurity($object): void; |
| 377 | 467 | |
| 468 | + /** |
|
| 469 | + * @return AdminInterface|null |
|
| 470 | + */ |
|
| 378 | 471 | public function getParent(): ?self; |
| 379 | 472 | |
| 473 | + /** |
|
| 474 | + * @return void |
|
| 475 | + */ |
|
| 380 | 476 | public function setParent(self $admin): void; |
| 381 | 477 | |
| 382 | 478 | /** |
@@ -388,6 +484,7 @@ discard block |
||
| 388 | 484 | * Set the translation domain. |
| 389 | 485 | * |
| 390 | 486 | * @param string $translationDomain the translation domain |
| 487 | + * @return void |
|
| 391 | 488 | */ |
| 392 | 489 | public function setTranslationDomain($translationDomain): void; |
| 393 | 490 | |
@@ -407,21 +504,29 @@ discard block |
||
| 407 | 504 | |
| 408 | 505 | /** |
| 409 | 506 | * Set the form groups. |
| 507 | + * @return void |
|
| 410 | 508 | */ |
| 411 | 509 | public function setFormGroups(array $formGroups): void; |
| 412 | 510 | |
| 413 | 511 | public function getFormTabs(); |
| 414 | 512 | |
| 513 | + /** |
|
| 514 | + * @return void |
|
| 515 | + */ |
|
| 415 | 516 | public function setFormTabs(array $formTabs): void; |
| 416 | 517 | |
| 417 | 518 | public function getShowTabs(); |
| 418 | 519 | |
| 520 | + /** |
|
| 521 | + * @return void |
|
| 522 | + */ |
|
| 419 | 523 | public function setShowTabs(array $showTabs): void; |
| 420 | 524 | |
| 421 | 525 | /** |
| 422 | 526 | * Remove a form group field. |
| 423 | 527 | * |
| 424 | 528 | * @param string $key |
| 529 | + * @return void |
|
| 425 | 530 | */ |
| 426 | 531 | public function removeFieldFromFormGroup($key): void; |
| 427 | 532 | |
@@ -434,6 +539,7 @@ discard block |
||
| 434 | 539 | |
| 435 | 540 | /** |
| 436 | 541 | * Set the show groups. |
| 542 | + * @return void |
|
| 437 | 543 | */ |
| 438 | 544 | public function setShowGroups(array $showGroups): void; |
| 439 | 545 | |
@@ -441,6 +547,7 @@ discard block |
||
| 441 | 547 | * Reorder items in showGroup. |
| 442 | 548 | * |
| 443 | 549 | * @param string $group |
| 550 | + * @return void |
|
| 444 | 551 | */ |
| 445 | 552 | public function reorderShowGroup($group, array $keys): void; |
| 446 | 553 | |
@@ -448,6 +555,7 @@ discard block |
||
| 448 | 555 | * add a FieldDescription. |
| 449 | 556 | * |
| 450 | 557 | * @param string $name |
| 558 | + * @return void |
|
| 451 | 559 | */ |
| 452 | 560 | public function addFormFieldDescription($name, FieldDescriptionInterface $fieldDescription): void; |
| 453 | 561 | |
@@ -455,6 +563,7 @@ discard block |
||
| 455 | 563 | * Remove a FieldDescription. |
| 456 | 564 | * |
| 457 | 565 | * @param string $name |
| 566 | + * @return void |
|
| 458 | 567 | */ |
| 459 | 568 | public function removeFormFieldDescription($name): void; |
| 460 | 569 | |
@@ -472,11 +581,13 @@ discard block |
||
| 472 | 581 | * Adds a new class to a list of supported sub classes. |
| 473 | 582 | * |
| 474 | 583 | * @param $subClass |
| 584 | + * @return void |
|
| 475 | 585 | */ |
| 476 | 586 | public function addSubClass($subClass): void; |
| 477 | 587 | |
| 478 | 588 | /** |
| 479 | 589 | * Sets the list of supported sub classes. |
| 590 | + * @return void |
|
| 480 | 591 | */ |
| 481 | 592 | public function setSubClasses(array $subClasses): void; |
| 482 | 593 | |
@@ -515,6 +626,7 @@ discard block |
||
| 515 | 626 | |
| 516 | 627 | /** |
| 517 | 628 | * Returns Admin`s label. |
| 629 | + * @return string |
|
| 518 | 630 | */ |
| 519 | 631 | public function getLabel(): ?string; |
| 520 | 632 | |
@@ -529,6 +641,7 @@ discard block |
||
| 529 | 641 | |
| 530 | 642 | /** |
| 531 | 643 | * Set the current child status. |
| 644 | + * @return void |
|
| 532 | 645 | */ |
| 533 | 646 | public function setCurrentChild(bool $currentChild): void; |
| 534 | 647 | |
@@ -558,6 +671,7 @@ discard block |
||
| 558 | 671 | |
| 559 | 672 | /** |
| 560 | 673 | * @param string $mode |
| 674 | + * @return void |
|
| 561 | 675 | */ |
| 562 | 676 | public function setListMode($mode): void; |
| 563 | 677 | |
@@ -587,12 +701,14 @@ discard block |
||
| 587 | 701 | * Returns the result link for an object. |
| 588 | 702 | * |
| 589 | 703 | * @param object $object |
| 704 | + * @return string|null |
|
| 590 | 705 | */ |
| 591 | 706 | public function getSearchResultLink($object): ?string; |
| 592 | 707 | |
| 593 | 708 | /** |
| 594 | 709 | * Setting to true will enable mosaic button for the admin screen. |
| 595 | 710 | * Setting to false will hide mosaic button for the admin screen. |
| 711 | + * @return void |
|
| 596 | 712 | */ |
| 597 | 713 | public function showMosaicButton(bool $isShown): void; |
| 598 | 714 | |