You are here

protected function RelationHandlerTrait::groupRelationManager in Group 2.0.x

Gets the group relation manager service.

Return value

\Drupal\group\Plugin\Group\Relation\GroupRelationManagerInterface The group relation manager service.

File

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

Class

RelationHandlerTrait
Trait for group relation plugin handlers.

Namespace

Drupal\group\Plugin\Group\RelationHandler

Code

protected function groupRelationManager() {
  if (!$this->groupRelationManager) {
    $this->groupRelationManager = \Drupal::service('plugin.manager.group_relation');
  }
  return $this->groupRelationManager;
}