Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5870 from open-sausages/pulls/4.0/move-NestedCont…
…roller API Move NestedController from cms to framework
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
/** | ||
* Interface that is implemented by controllers that are designed to hand control over to another controller. | ||
* ModelAsController, which selects up a SiteTree object and passes control over to a suitable subclass of ContentController, is a good | ||
* example of this. | ||
* | ||
* Controllers that implement this interface must always return a nested controller. | ||
*/ | ||
interface NestedController { | ||
|
||
/** | ||
* Get overriding controller | ||
* | ||
* @return Controller | ||
*/ | ||
public function getNestedController(); | ||
|
||
} |