Skip to content

Commit

Permalink
uncomment AdminInterface::isCurrentRoute method.
Browse files Browse the repository at this point in the history
For next major relase.
  • Loading branch information
Rivsen committed May 3, 2016
1 parent f1b375b commit 8b8897f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Admin/AdminInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,6 @@ public function hasRoute($name);
/**
* Check the current request is given route or not.
*
* TODO: uncomment this method before releasing 4.0
*
* ```
* $this->isCurrentRoute('create'); // is create page?
* $this->isCurrentRoute('edit', 'some.admin.code'); // is some.admin.code admin's edit page?
Expand All @@ -322,7 +320,7 @@ public function hasRoute($name);
*
* @return bool
*/
// public function isCurrentRoute($name, $adminCode = null);
public function isCurrentRoute($name, $adminCode = null);

/**
* Returns true if the admin has a FieldDescription with the given $name.
Expand Down

0 comments on commit 8b8897f

Please sign in to comment.