You are here

public function GroupInterface::getContentByEntityId in Group 8

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

Retrieves all GroupContent entities for a specific entity.

Parameters

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

int $id: The ID of the entity to retrieve the GroupContent entities for.

Return value

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

1 method overrides GroupInterface::getContentByEntityId()
Group::getContentByEntityId in src/Entity/Group.php
Retrieves all GroupContent entities for a specific entity.

File

src/Entity/GroupInterface.php, line 73

Class

GroupInterface
Provides an interface defining a Group entity.

Namespace

Drupal\group\Entity

Code

public function getContentByEntityId($plugin_id, $id);