You are here

public function RelationHandlerTrait::init in Group 2.0.x

2 calls to RelationHandlerTrait::init()
AccessControlTrait::init in src/Plugin/Group/RelationHandler/AccessControlTrait.php
PermissionProviderTrait::init in src/Plugin/Group/RelationHandler/PermissionProviderTrait.php

File

src/Plugin/Group/RelationHandler/RelationHandlerTrait.php, line 57

Class

RelationHandlerTrait
Trait for group relation plugin handlers.

Namespace

Drupal\group\Plugin\Group\RelationHandler

Code

public function init($plugin_id, array $definition) {
  if (isset($this->parent)) {
    $this->parent
      ->init($plugin_id, $definition);
  }
  $this->pluginId = $plugin_id;
  $this->definition = $definition;
}