You are here

interface OgContextInterface in Organic groups 8

Declares an interface for OG context providers.

Hierarchy

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

... See full list

File

src/OgContextInterface.php, line 10

Namespace

Drupal\og
View 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

Namesort descending Modifiers Type Description Overrides
OgContextInterface::getGroup public function Returns the group which is relevant in the current context, if any. 1