public function OgResolvedGroupCollectionInterface::hasGroup in Organic groups 8
Returns whether the given group has already been added.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $group: The group for which to check the existence.
Return value
bool TRUE if the group has already been added.
1 method overrides OgResolvedGroupCollectionInterface::hasGroup()
- OgResolvedGroupCollection::hasGroup in src/
OgResolvedGroupCollection.php - Returns whether the given group has already been added.
File
- src/
OgResolvedGroupCollectionInterface.php, line 94
Class
- OgResolvedGroupCollectionInterface
- Interface for classes providing a collection of resolved groups.
Namespace
Drupal\ogCode
public function hasGroup(ContentEntityInterface $group);