interface OgContextInterface in Organic groups 8
Declares an interface for OG context providers.
Hierarchy
- interface \Drupal\og\OgContextInterface
Expanded class hierarchy of OgContextInterface
All classes that implement OgContextInterface
7 files declare their use of OgContextInterface
- MemberCountBlock.php in src/
Plugin/ Block/ MemberCountBlock.php - MemberCountBlockTest.php in tests/
src/ Kernel/ Plugin/ Block/ MemberCountBlockTest.php - OgContext.php in src/
ContextProvider/ OgContext.php - OgContextCacheContextTestBase.php in tests/
src/ Unit/ Cache/ Context/ OgContextCacheContextTestBase.php - OgGroupContextCacheContext.php in src/
Cache/ Context/ OgGroupContextCacheContext.php
File
- src/
OgContextInterface.php, line 10
Namespace
Drupal\ogView source
interface OgContextInterface {
/**
* Returns the group which is relevant in the current context, if any.
*
* @return \Drupal\Core\Entity\ContentEntityInterface|null
* The group which is relevant in the current context, or NULL if no group
* was found.
*/
public function getGroup();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
OgContextInterface:: |
public | function | Returns the group which is relevant in the current context, if any. | 1 |