You are here

public function GroupContentStorageInterface::loadByGroup in Group 8

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

Retrieves all GroupContent entities for a group.

Parameters

\Drupal\group\Entity\GroupInterface $group: The group entity to load the group content entities for.

string $plugin_id: (optional) A content enabler plugin ID to filter on.

array $filters: (optional) An associative array of extra filters where the keys are property or field names and the values are the value to filter on.

Return value

\Drupal\group\Entity\GroupContentInterface[] A list of GroupContent entities matching the criteria.

1 method overrides GroupContentStorageInterface::loadByGroup()
GroupContentStorage::loadByGroup in src/Entity/Storage/GroupContentStorage.php
Retrieves all GroupContent entities for a group.

File

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

Class

GroupContentStorageInterface
Defines an interface for group content entity storage classes.

Namespace

Drupal\group\Entity\Storage

Code

public function loadByGroup(GroupInterface $group, $plugin_id = NULL, $filters = []);