You are here

trait PostInstallTrait in Group 2.0.x

Trait for group relation post install handlers.

Hierarchy

1 file declares its use of PostInstallTrait
PostInstall.php in src/Plugin/Group/RelationHandlerDefault/PostInstall.php

File

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

Namespace

Drupal\group\Plugin\Group\RelationHandler
View source
trait PostInstallTrait {
  use RelationHandlerTrait;

  /**
   * {@inheritdoc}
   */
  public function getInstallTasks() {
    if (!isset($this->parent)) {
      throw new \LogicException('Using PostInstallTrait without assigning a parent or overwriting the methods.');
    }
    return $this->parent
      ->getInstallTasks();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PostInstallTrait::getInstallTasks public function 2
RelationHandlerTrait::$definition protected property The plugin definition.
RelationHandlerTrait::$entityTypeManager protected property The entity type manager.
RelationHandlerTrait::$groupRelationManager protected property The group relation manager.
RelationHandlerTrait::$parent protected property The parent relation handler in the decorator chain.
RelationHandlerTrait::$pluginId protected property The plugin ID as read from the definition.
RelationHandlerTrait::entityTypeManager protected function Gets the entity type manager service.
RelationHandlerTrait::groupRelationManager protected function Gets the group relation manager service.
RelationHandlerTrait::init public function