trait PostInstallTrait in Group 2.0.x
Trait for group relation post install handlers.
Hierarchy
- trait \Drupal\group\Plugin\Group\RelationHandler\PostInstallTrait uses RelationHandlerTrait
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\RelationHandlerView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PostInstallTrait:: |
public | function | 2 | |
RelationHandlerTrait:: |
protected | property | The plugin definition. | |
RelationHandlerTrait:: |
protected | property | The entity type manager. | |
RelationHandlerTrait:: |
protected | property | The group relation manager. | |
RelationHandlerTrait:: |
protected | property | The parent relation handler in the decorator chain. | |
RelationHandlerTrait:: |
protected | property | The plugin ID as read from the definition. | |
RelationHandlerTrait:: |
protected | function | Gets the entity type manager service. | |
RelationHandlerTrait:: |
protected | function | Gets the group relation manager service. | |
RelationHandlerTrait:: |
public | function |