-
Notifications
You must be signed in to change notification settings - Fork 3
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 #21 from discoverygarden/fix/refactor-onto-upstream
DGIR-71: Fix/refactor onto upstream
- Loading branch information
Showing
5 changed files
with
92 additions
and
183 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
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,45 @@ | ||
<?php | ||
|
||
namespace Drupal\dgi_members; | ||
|
||
use Drupal\node\NodeInterface; | ||
|
||
/** | ||
* Member operations service interface. | ||
*/ | ||
interface DgiMembersEntityOperationsInterface { | ||
|
||
/** | ||
* Confirm the routeMatch node parameter has the 'Compound Object' term. | ||
* | ||
* @return bool | ||
* TRUE if the current node in the route is a compound object, FALSE | ||
* otherwise. | ||
*/ | ||
public function nodeFromRouteIsCompound() : bool; | ||
|
||
/** | ||
* Retrieve the first member of the given object or the node from url param. | ||
* | ||
* @return false|\Drupal\node\NodeInterface | ||
* FALSE if unable to retrieve an active member, or the member if present. | ||
*/ | ||
public function retrieveActiveMember($url_param = NULL) : FALSE|NodeInterface; | ||
|
||
/** | ||
* Retrieve the first member of the contextual 'Node'. | ||
* | ||
* @return false|\Drupal\node\NodeInterface | ||
* FALSE if the member could not be retrieved, or the member object. | ||
*/ | ||
public function retrieveFirstOfMembers() : FALSE|NodeInterface; | ||
|
||
/** | ||
* Retrieve 'members' of the current page object. | ||
* | ||
* @return false|string[]|int[] | ||
* An array of member IDs for the given object, or FALSE if none found. | ||
*/ | ||
public function membersQueryExecute() : array|FALSE; | ||
|
||
} |
Oops, something went wrong.