You are here

public function OgContextInterface::getGroup in Organic groups 8

Returns the group which is relevant in the current context, if any.

Return value

\Drupal\Core\Entity\ContentEntityInterface|null The group which is relevant in the current context, or NULL if no group was found.

1 method overrides OgContextInterface::getGroup()
OgContext::getGroup in src/ContextProvider/OgContext.php
Returns the group which is relevant in the current context, if any.

File

src/OgContextInterface.php, line 19

Class

OgContextInterface
Declares an interface for OG context providers.

Namespace

Drupal\og

Code

public function getGroup();