You are here

public static function GroupContentInterface::loadByEntity in Group 8

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

Loads group content entities which reference 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[] An array of group content entities which reference the given entity.

1 method overrides GroupContentInterface::loadByEntity()
GroupContent::loadByEntity in src/Entity/GroupContent.php
Loads group content entities which reference a given entity.

File

src/Entity/GroupContentInterface.php, line 64

Class

GroupContentInterface
Provides an interface defining a Group content entity.

Namespace

Drupal\group\Entity

Code

public static function loadByEntity(ContentEntityInterface $entity);