You are here

public static function GroupContentTypeInterface::loadByContentPluginId in Group 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/GroupContentTypeInterface.php \Drupal\group\Entity\GroupContentTypeInterface::loadByContentPluginId()

Loads group content type entities by their responsible plugin ID.

Parameters

string|string[] $plugin_id: The ID of the group relation plugin or an array of plugin IDs. If more than one plugin ID is provided, this will load all of the group content types that match any of the provided plugin IDs.

Return value

\Drupal\group\Entity\GroupContentTypeInterface[] An array of group content type entities indexed by their IDs.

1 method overrides GroupContentTypeInterface::loadByContentPluginId()
GroupContentType::loadByContentPluginId in src/Entity/GroupContentType.php
Loads group content type entities by their responsible plugin ID.

File

src/Entity/GroupContentTypeInterface.php, line 66

Class

GroupContentTypeInterface
Provides an interface defining a group content type entity.

Namespace

Drupal\group\Entity

Code

public static function loadByContentPluginId($plugin_id);