-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update src/Admin/AbstractAdmin.php Co-authored-by: Javier Spagnoletti <[email protected]>
- Loading branch information
Showing
2 changed files
with
61 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ | |
use Sonata\AdminBundle\Object\MetadataInterface; | ||
use Sonata\AdminBundle\Route\RouteGeneratorInterface; | ||
use Sonata\AdminBundle\Security\Handler\SecurityHandlerInterface; | ||
use Sonata\AdminBundle\Templating\MutableTemplateRegistryInterface; | ||
use Sonata\AdminBundle\Translator\LabelTranslatorStrategyInterface; | ||
use Sonata\Exporter\Source\SourceIteratorInterface; | ||
use Sonata\Form\Validator\ErrorElement; | ||
|
@@ -39,31 +40,32 @@ | |
/** | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @method array configureActionButtons(string $action, ?object $object = null) | ||
* @method string getSearchResultLink(object $object) | ||
* @method void showMosaicButton(bool $isShown) | ||
* @method bool isDefaultFilter(string $name) // NEXT_MAJOR: Remove this | ||
* @method bool isCurrentRoute(string $name, ?string $adminCode) | ||
* @method bool canAccessObject(string $action, object $object) | ||
* @method mixed getPersistentParameter(string $name) | ||
* @method array getExportFields() | ||
* @method array getSubClasses() | ||
* @method AdminInterface getRoot() | ||
* @method string getRootCode() | ||
* @method array getActionButtons(string $action, ?object $object) | ||
* @method FieldDescriptionCollection|null getList() | ||
* @method void setFilterPersister(?FilterPersisterInterface $filterPersister = null) | ||
* @method string getBaseRoutePattern() | ||
* @method string getBaseRouteName() | ||
* @method ItemInterface getSideMenu(string $action, ?AdminInterface $childAdmin = null) | ||
* @method void addParentAssociationMapping(string $code, string $value) | ||
* @method RouteGeneratorInterface getRouteGenerator() | ||
* @method string getClassnameLabel() | ||
* @method AdminInterface|null getCurrentChildAdmin() | ||
* @method string|null getParentAssociationMapping() | ||
* @method void reorderFormGroup(string $group, array $keys) | ||
* @method void defineFormBuilder(FormBuilderInterface $formBuilder) | ||
* @method string getPagerType() | ||
* @method array configureActionButtons(string $action, ?object $object = null) | ||
* @method string getSearchResultLink(object $object) | ||
* @method void showMosaicButton(bool $isShown) | ||
* @method bool isDefaultFilter(string $name) // NEXT_MAJOR: Remove this | ||
* @method bool isCurrentRoute(string $name, ?string $adminCode) | ||
* @method bool canAccessObject(string $action, object $object) | ||
* @method mixed getPersistentParameter(string $name) | ||
* @method array getExportFields() | ||
* @method array getSubClasses() | ||
* @method AdminInterface getRoot() | ||
* @method string getRootCode() | ||
* @method array getActionButtons(string $action, ?object $object) | ||
* @method FieldDescriptionCollection|null getList() | ||
* @method void setFilterPersister(?FilterPersisterInterface $filterPersister = null) | ||
* @method string getBaseRoutePattern() | ||
* @method string getBaseRouteName() | ||
* @method ItemInterface getSideMenu(string $action, ?AdminInterface $childAdmin = null) | ||
* @method void addParentAssociationMapping(string $code, string $value) | ||
* @method RouteGeneratorInterface getRouteGenerator() | ||
* @method string getClassnameLabel() | ||
* @method AdminInterface|null getCurrentChildAdmin() | ||
* @method string|null getParentAssociationMapping() | ||
* @method void reorderFormGroup(string $group, array $keys) | ||
* @method void defineFormBuilder(FormBuilderInterface $formBuilder) | ||
* @method string getPagerType() | ||
* @method MutableTemplateRegistryInterface getTemplateRegistry() | ||
* | ||
* @phpstan-template T of object | ||
* @phpstan-extends AccessRegistryInterface<T> | ||
|
@@ -592,6 +594,9 @@ public function isChild(); | |
*/ | ||
public function getTemplate($name); | ||
|
||
// NEXT_MAJOR: uncomment this method in 4.0 | ||
//public function getTemplateRegistry(): MutableTemplateRegistryInterface; | ||
|
||
/** | ||
* Set the translation domain. | ||
* | ||
|