You are here

public function GroupContentEnablerManagerInterface::createHandlerInstance in Group 8

Creates new handler instance.

\Drupal\group\Plugin\GroupContentEnablerManagerInterface::getHandler() is preferred since that method has additional checking that the class exists and 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

mixed $class: The handler class to instantiate.

string $plugin_id: The ID of the plugin the handler is for.

array $definition: The plugin definition.

Return value

object A handler instance.

1 method overrides GroupContentEnablerManagerInterface::createHandlerInstance()
GroupContentEnablerManager::createHandlerInstance in src/Plugin/GroupContentEnablerManager.php
Creates new handler instance.

File

src/Plugin/GroupContentEnablerManagerInterface.php, line 72

Class

GroupContentEnablerManagerInterface
Provides a common interface for group content enabler managers.

Namespace

Drupal\group\Plugin

Code

public function createHandlerInstance($class, $plugin_id, array $definition = NULL);