-
-
Notifications
You must be signed in to change notification settings - Fork 188
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 #559 from krispypen/feature/hiddenfromnav_interface
[NodeBundle] Possible to create a page type which is default hidden from navigation
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/Kunstmaan/NodeBundle/Helper/HiddenFromNavInterface.php
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,17 @@ | ||
<?php | ||
|
||
namespace Kunstmaan\NodeBundle\Helper; | ||
|
||
/** | ||
* Implement this interface to give you control over the navigation behavior of this page | ||
*/ | ||
interface HiddenFromNavInterface | ||
{ | ||
/** | ||
* Returns true when the page is to be hidden from the navigation | ||
* | ||
* @return bool | ||
*/ | ||
public function isHiddenFromNav(); | ||
|
||
} |
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