You are here

public function AccessEventBase::getGroup in Organic groups 8

Returns the group that provides the context for the access check.

Return value

\Drupal\Core\Entity\ContentEntityInterface The group entity.

Overrides AccessEventInterface::getGroup

File

src/Event/AccessEventBase.php, line 84

Class

AccessEventBase
Base class for OG access events.

Namespace

Drupal\og\Event

Code

public function getGroup() : ContentEntityInterface {
  return $this->group;
}