public function GroupContentTypeStorageInterface::createFromPlugin in Group 2.0.x
Same name and namespace in other branches
- 8 src/Entity/Storage/GroupContentTypeStorageInterface.php \Drupal\group\Entity\Storage\GroupContentTypeStorageInterface::createFromPlugin()
Creates a group content type for a group type using a specific plugin.
Parameters
\Drupal\group\Entity\GroupTypeInterface $group_type: The group type to create the group content type for.
string $plugin_id: The ID of the group relation plugin to use.
array $configuration: (optional) An array of group relation plugin configuration.
Return value
\Drupal\group\Entity\GroupContentTypeInterface A new, unsaved GroupContentType entity.
1 method overrides GroupContentTypeStorageInterface::createFromPlugin()
- GroupContentTypeStorage::createFromPlugin in src/
Entity/ Storage/ GroupContentTypeStorage.php - Creates a group content type for a group type using a specific plugin.
File
- src/
Entity/ Storage/ GroupContentTypeStorageInterface.php, line 61
Class
- GroupContentTypeStorageInterface
- Defines an interface for group content type entity storage classes.
Namespace
Drupal\group\Entity\StorageCode
public function createFromPlugin(GroupTypeInterface $group_type, $plugin_id, array $configuration = []);