You are here

public function GroupRelationManagerInterface::createHandlerInstance in Group 2.0.x

Creates a new handler instance.

Using ::getHandler() is preferred since that method has static caches.

@internal Marked as internal because the plugin definitions will become classes in a future release to further mimic the entity type system. Do not call this directly.

Parameters

string $plugin_id: The plugin ID for this handler.

string $handler_type: The handler type to create an instance for.

Return value

object A handler instance.

1 method overrides GroupRelationManagerInterface::createHandlerInstance()
GroupRelationManager::createHandlerInstance in src/Plugin/Group/Relation/GroupRelationManager.php
Creates a new handler instance.

File

src/Plugin/Group/Relation/GroupRelationManagerInterface.php, line 54

Class

GroupRelationManagerInterface
Provides a common interface for group relation managers.

Namespace

Drupal\group\Plugin\Group\Relation

Code

public function createHandlerInstance($plugin_id, $handler_type);