You are here

public function GroupContentStorageInterface::loadByEntity in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/Storage/GroupContentStorageInterface.php \Drupal\group\Entity\Storage\GroupContentStorageInterface::loadByEntity()

Retrieves all GroupContent entities that represent a given entity.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: An entity which may be within one or more groups.

Return value

\Drupal\group\Entity\GroupContentInterface[] A list of GroupContent entities which refer to the given entity.

1 method overrides GroupContentStorageInterface::loadByEntity()
GroupContentStorage::loadByEntity in src/Entity/Storage/GroupContentStorage.php
Retrieves all GroupContent entities that represent a given entity.

File

src/Entity/Storage/GroupContentStorageInterface.php, line 56

Class

GroupContentStorageInterface
Defines an interface for group content entity storage classes.

Namespace

Drupal\group\Entity\Storage

Code

public function loadByEntity(ContentEntityInterface $entity);