You are here

public function GroupInterface::getContentEntities in Group 8

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

Retrieves all group content for the group.

Unlike GroupInterface::getContent(), this function actually returns the entities that were added to the group through GroupContent entities.

Parameters

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\Core\Entity\EntityInterface[] A list of entities matching the criteria. This list does not have keys that represent the entity IDs as we could have collisions that way.

See also

\Drupal\group\Entity\GroupInterface::getContent()

1 method overrides GroupInterface::getContentEntities()
Group::getContentEntities in src/Entity/Group.php
Retrieves all group content for the group.

File

src/Entity/GroupInterface.php, line 93

Class

GroupInterface
Provides an interface defining a Group entity.

Namespace

Drupal\group\Entity

Code

public function getContentEntities($plugin_id = NULL, $filters = []);