You are here

interface RelationHandlerInterface in Group 2.0.x

Provides a common interface for group relation handlers.

Hierarchy

Expanded class hierarchy of RelationHandlerInterface

All classes that implement RelationHandlerInterface

1 file declares its use of RelationHandlerInterface
GroupRelationManagerTest.php in tests/src/Unit/GroupRelationManagerTest.php

File

src/Plugin/Group/RelationHandler/RelationHandlerInterface.php, line 8

Namespace

Drupal\group\Plugin\Group\RelationHandler
View source
interface RelationHandlerInterface {

  /**
   * Initializes the handler.
   *
   * @param string $plugin_id
   *   The group relation plugin ID. Note: This is the actual plugin ID,
   *   including any potential derivative ID. To get the base plugin ID, you
   *   should use $definition['id'].
   * @param array $definition
   *   The group relation plugin definition.
   *
   * @todo Plugin definition should become a class.
   */
  public function init($plugin_id, array $definition);

}

Members

Namesort descending Modifiers Type Description Overrides
RelationHandlerInterface::init public function Initializes the handler.