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\EventCode
public function getGroup() : ContentEntityInterface {
return $this->group;
}