public function OgMenuInstanceInterface::getGroup in Organic Groups Menu (OG Menu) 8
Returns the group that is associated with the menu instance.
Return value
\Drupal\Core\Entity\EntityInterface The group entity.
Throws
\Exception Thrown when no group is associated, or the group could not be retrieved.
1 method overrides OgMenuInstanceInterface::getGroup()
- OgMenuInstance::getGroup in src/
Entity/ OgMenuInstance.php - Returns the group that is associated with the menu instance.
File
- src/
OgMenuInstanceInterface.php, line 39 - Contains \Drupal\og_menu\OgMenuInstanceInterface.
Class
- OgMenuInstanceInterface
- Provides an interface for defining OG Menu instance entities.
Namespace
Drupal\og_menuCode
public function getGroup();