You are here

public function AccessControlTrait::init in Group 2.0.x

File

src/Plugin/Group/RelationHandler/AccessControlTrait.php, line 35

Class

AccessControlTrait
Trait for group relation permission providers.

Namespace

Drupal\group\Plugin\Group\RelationHandler

Code

public function init($plugin_id, array $definition) {
  $this
    ->traitInit($plugin_id, $definition);
  $this->permissionProvider = $this
    ->groupRelationManager()
    ->getPermissionProvider($plugin_id);
}