OgContextInterface.php in Organic groups 8
Namespace
Drupal\ogFile
src/OgContextInterface.phpView source
<?php
declare (strict_types=1);
namespace Drupal\og;
/**
* Declares an interface for OG context providers.
*/
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();
}
Interfaces
Name![]() |
Description |
---|---|
OgContextInterface | Declares an interface for OG context providers. |