Skip to content

Commit

Permalink
Update interface
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Jun 17, 2020
1 parent 6e5fe7a commit 6cda303
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions src/Admin/AdminInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,19 @@
/**
* @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)
* @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 array configureActionButtons(string $action, ?object $object = null)
* @method string getSearchResultLink(object $object)
* @method void showMosaicButton(bool $isShown)
* @method bool isDefaultFilter(string $name)
* @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()
*/
interface AdminInterface extends AccessRegistryInterface, FieldDescriptionRegistryInterface, LifecycleHookProviderInterface, MenuBuilderInterface, ParentAdminInterface, UrlGeneratorInterface
{
Expand Down Expand Up @@ -270,6 +271,9 @@ public function getValidator();
*/
public function getShow();

// NEXT_MAJOR: uncomment this method in 4.0
// public function getList(): ?FieldDescriptionCollection;

public function setFormTheme(array $formTheme);

/**
Expand Down Expand Up @@ -360,6 +364,8 @@ public function setSubject($subject);
public function getSubject();

/**
* NEXT_MAJOR: Remove this methods, since it's already in FieldDescriptionRegistryInterface.
*
* Returns a list FieldDescription.
*
* @param string $name
Expand All @@ -369,6 +375,8 @@ public function getSubject();
public function getListFieldDescription($name);

/**
* NEXT_MAJOR: Remove this methods, since it's already in FieldDescriptionRegistryInterface.
*
* Returns true if the list FieldDescription exists.
*
* @param string $name
Expand All @@ -378,6 +386,8 @@ public function getListFieldDescription($name);
public function hasListFieldDescription($name);

/**
* NEXT_MAJOR: Remove this methods, since it's already in FieldDescriptionRegistryInterface.
*
* Returns the collection of list FieldDescriptions.
*
* @return array
Expand Down Expand Up @@ -542,13 +552,17 @@ public function setShowGroups(array $showGroups);
public function reorderShowGroup($group, array $keys);

/**
* NEXT_MAJOR: Remove this methods, since it's already in FieldDescriptionRegistryInterface
*
* add a FieldDescription.
*
* @param string $name
*/
public function addFormFieldDescription($name, FieldDescriptionInterface $fieldDescription);

/**
* NEXT_MAJOR: Remove this methods, since it's already in FieldDescriptionRegistryInterface
*
* Remove a FieldDescription.
*
* @param string $name
Expand Down

0 comments on commit 6cda303

Please sign in to comment.