@@ -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 | /** |
@@ -186,8 +235,14 @@ discard block |
||
| 186 | 235 | */ |
| 187 | 236 | public function hasRoute(string $name): bool; |
| 188 | 237 | |
| 238 | + /** |
|
| 239 | + * @return void |
|
| 240 | + */ |
|
| 189 | 241 | public function setSecurityHandler(SecurityHandlerInterface $securityHandler): void; |
| 190 | 242 | |
| 243 | + /** |
|
| 244 | + * @return SecurityHandlerInterface |
|
| 245 | + */ |
|
| 191 | 246 | public function getSecurityHandler(): ?SecurityHandlerInterface; |
| 192 | 247 | |
| 193 | 248 | /** |
@@ -209,12 +264,24 @@ discard block |
||
| 209 | 264 | */ |
| 210 | 265 | public function id($entity): string; |
| 211 | 266 | |
| 267 | + /** |
|
| 268 | + * @return void |
|
| 269 | + */ |
|
| 212 | 270 | public function setValidator(ValidatorInterface $validator): void; |
| 213 | 271 | |
| 272 | + /** |
|
| 273 | + * @return ValidatorInterface |
|
| 274 | + */ |
|
| 214 | 275 | public function getValidator(): ?ValidatorInterface; |
| 215 | 276 | |
| 277 | + /** |
|
| 278 | + * @return FieldDescriptionCollection|null |
|
| 279 | + */ |
|
| 216 | 280 | public function getShow(): ?FieldDescriptionCollection; |
| 217 | 281 | |
| 282 | + /** |
|
| 283 | + * @return void |
|
| 284 | + */ |
|
| 218 | 285 | public function setFormTheme(array $formTheme): void; |
| 219 | 286 | |
| 220 | 287 | /** |
@@ -222,6 +289,9 @@ discard block |
||
| 222 | 289 | */ |
| 223 | 290 | public function getFormTheme(): array; |
| 224 | 291 | |
| 292 | + /** |
|
| 293 | + * @return void |
|
| 294 | + */ |
|
| 225 | 295 | public function setFilterTheme(array $filterTheme): void; |
| 226 | 296 | |
| 227 | 297 | /** |
@@ -229,6 +299,9 @@ discard block |
||
| 229 | 299 | */ |
| 230 | 300 | public function getFilterTheme(): array; |
| 231 | 301 | |
| 302 | + /** |
|
| 303 | + * @return void |
|
| 304 | + */ |
|
| 232 | 305 | public function addExtension(AdminExtensionInterface $extension): void; |
| 233 | 306 | |
| 234 | 307 | /** |
@@ -238,8 +311,14 @@ discard block |
||
| 238 | 311 | */ |
| 239 | 312 | public function getExtensions(): array; |
| 240 | 313 | |
| 314 | + /** |
|
| 315 | + * @return void |
|
| 316 | + */ |
|
| 241 | 317 | public function setRouteBuilder(RouteBuilderInterface $routeBuilder): void; |
| 242 | 318 | |
| 319 | + /** |
|
| 320 | + * @return RouteBuilderInterface |
|
| 321 | + */ |
|
| 243 | 322 | public function getRouteBuilder(): ?RouteBuilderInterface; |
| 244 | 323 | |
| 245 | 324 | /** |
@@ -247,8 +326,14 @@ discard block |
||
| 247 | 326 | */ |
| 248 | 327 | public function toString($object): string; |
| 249 | 328 | |
| 329 | + /** |
|
| 330 | + * @return void |
|
| 331 | + */ |
|
| 250 | 332 | public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy): void; |
| 251 | 333 | |
| 334 | + /** |
|
| 335 | + * @return LabelTranslatorStrategyInterface |
|
| 336 | + */ |
|
| 252 | 337 | public function getLabelTranslatorStrategy(): ?LabelTranslatorStrategyInterface; |
| 253 | 338 | |
| 254 | 339 | /** |
@@ -265,6 +350,7 @@ discard block |
||
| 265 | 350 | |
| 266 | 351 | /** |
| 267 | 352 | * @param string $uniqId |
| 353 | + * @return void |
|
| 268 | 354 | */ |
| 269 | 355 | public function setUniqid($uniqId): void; |
| 270 | 356 | |
@@ -287,6 +373,7 @@ discard block |
||
| 287 | 373 | |
| 288 | 374 | /** |
| 289 | 375 | * @param object|null $subject |
| 376 | + * @return void |
|
| 290 | 377 | */ |
| 291 | 378 | public function setSubject($subject): void; |
| 292 | 379 | |
@@ -333,6 +420,7 @@ discard block |
||
| 333 | 420 | * |
| 334 | 421 | * @param string $actionName |
| 335 | 422 | * @param bool $allElements |
| 423 | + * @return void |
|
| 336 | 424 | */ |
| 337 | 425 | public function preBatchAction($actionName, ProxyQueryInterface $query, array &$idx, $allElements): void; |
| 338 | 426 | |
@@ -355,6 +443,7 @@ discard block |
||
| 355 | 443 | * |
| 356 | 444 | * @deprecated this feature cannot be stable, use a custom validator, |
| 357 | 445 | * the feature will be removed with Symfony 2.2 |
| 446 | + * @return void |
|
| 358 | 447 | */ |
| 359 | 448 | public function validate(ErrorElement $errorElement, $object): void; |
| 360 | 449 | |
@@ -367,11 +456,18 @@ discard block |
||
| 367 | 456 | * Add object security, fe. make the current user owner of the object. |
| 368 | 457 | * |
| 369 | 458 | * @param object $object |
| 459 | + * @return void |
|
| 370 | 460 | */ |
| 371 | 461 | public function createObjectSecurity($object): void; |
| 372 | 462 | |
| 463 | + /** |
|
| 464 | + * @return AdminInterface|null |
|
| 465 | + */ |
|
| 373 | 466 | public function getParent(): ?self; |
| 374 | 467 | |
| 468 | + /** |
|
| 469 | + * @return void |
|
| 470 | + */ |
|
| 375 | 471 | public function setParent(self $admin): void; |
| 376 | 472 | |
| 377 | 473 | /** |
@@ -383,6 +479,7 @@ discard block |
||
| 383 | 479 | * Set the translation domain. |
| 384 | 480 | * |
| 385 | 481 | * @param string $translationDomain the translation domain |
| 482 | + * @return void |
|
| 386 | 483 | */ |
| 387 | 484 | public function setTranslationDomain($translationDomain): void; |
| 388 | 485 | |
@@ -402,21 +499,29 @@ discard block |
||
| 402 | 499 | |
| 403 | 500 | /** |
| 404 | 501 | * Set the form groups. |
| 502 | + * @return void |
|
| 405 | 503 | */ |
| 406 | 504 | public function setFormGroups(array $formGroups): void; |
| 407 | 505 | |
| 408 | 506 | public function getFormTabs(); |
| 409 | 507 | |
| 508 | + /** |
|
| 509 | + * @return void |
|
| 510 | + */ |
|
| 410 | 511 | public function setFormTabs(array $formTabs): void; |
| 411 | 512 | |
| 412 | 513 | public function getShowTabs(); |
| 413 | 514 | |
| 515 | + /** |
|
| 516 | + * @return void |
|
| 517 | + */ |
|
| 414 | 518 | public function setShowTabs(array $showTabs): void; |
| 415 | 519 | |
| 416 | 520 | /** |
| 417 | 521 | * Remove a form group field. |
| 418 | 522 | * |
| 419 | 523 | * @param string $key |
| 524 | + * @return void |
|
| 420 | 525 | */ |
| 421 | 526 | public function removeFieldFromFormGroup($key): void; |
| 422 | 527 | |
@@ -429,6 +534,7 @@ discard block |
||
| 429 | 534 | |
| 430 | 535 | /** |
| 431 | 536 | * Set the show groups. |
| 537 | + * @return void |
|
| 432 | 538 | */ |
| 433 | 539 | public function setShowGroups(array $showGroups): void; |
| 434 | 540 | |
@@ -436,6 +542,7 @@ discard block |
||
| 436 | 542 | * Reorder items in showGroup. |
| 437 | 543 | * |
| 438 | 544 | * @param string $group |
| 545 | + * @return void |
|
| 439 | 546 | */ |
| 440 | 547 | public function reorderShowGroup($group, array $keys): void; |
| 441 | 548 | |
@@ -443,6 +550,7 @@ discard block |
||
| 443 | 550 | * add a FieldDescription. |
| 444 | 551 | * |
| 445 | 552 | * @param string $name |
| 553 | + * @return void |
|
| 446 | 554 | */ |
| 447 | 555 | public function addFormFieldDescription($name, FieldDescriptionInterface $fieldDescription): void; |
| 448 | 556 | |
@@ -450,6 +558,7 @@ discard block |
||
| 450 | 558 | * Remove a FieldDescription. |
| 451 | 559 | * |
| 452 | 560 | * @param string $name |
| 561 | + * @return void |
|
| 453 | 562 | */ |
| 454 | 563 | public function removeFormFieldDescription($name): void; |
| 455 | 564 | |
@@ -467,11 +576,13 @@ discard block |
||
| 467 | 576 | * Adds a new class to a list of supported sub classes. |
| 468 | 577 | * |
| 469 | 578 | * @param $subClass |
| 579 | + * @return void |
|
| 470 | 580 | */ |
| 471 | 581 | public function addSubClass($subClass): void; |
| 472 | 582 | |
| 473 | 583 | /** |
| 474 | 584 | * Sets the list of supported sub classes. |
| 585 | + * @return void |
|
| 475 | 586 | */ |
| 476 | 587 | public function setSubClasses(array $subClasses): void; |
| 477 | 588 | |
@@ -510,6 +621,7 @@ discard block |
||
| 510 | 621 | |
| 511 | 622 | /** |
| 512 | 623 | * Returns Admin`s label. |
| 624 | + * @return string |
|
| 513 | 625 | */ |
| 514 | 626 | public function getLabel(): ?string; |
| 515 | 627 | |
@@ -524,6 +636,7 @@ discard block |
||
| 524 | 636 | |
| 525 | 637 | /** |
| 526 | 638 | * Set the current child status. |
| 639 | + * @return void |
|
| 527 | 640 | */ |
| 528 | 641 | public function setCurrentChild(bool $currentChild): void; |
| 529 | 642 | |
@@ -549,6 +662,7 @@ discard block |
||
| 549 | 662 | |
| 550 | 663 | /** |
| 551 | 664 | * @param string $mode |
| 665 | + * @return void |
|
| 552 | 666 | */ |
| 553 | 667 | public function setListMode($mode): void; |
| 554 | 668 | |
@@ -574,12 +688,14 @@ discard block |
||
| 574 | 688 | |
| 575 | 689 | /** |
| 576 | 690 | * Returns the result link for an object. |
| 691 | + * @return string|null |
|
| 577 | 692 | */ |
| 578 | 693 | public function getSearchResultLink(object $object): ?string; |
| 579 | 694 | |
| 580 | 695 | /** |
| 581 | 696 | * Setting to true will enable mosaic button for the admin screen. |
| 582 | 697 | * Setting to false will hide mosaic button for the admin screen. |
| 698 | + * @return void |
|
| 583 | 699 | */ |
| 584 | 700 | public function showMosaicButton(bool $isShown): void; |
| 585 | 701 | |