You are here

public function GroupId::__construct in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/views/argument/GroupId.php \Drupal\group\Plugin\views\argument\GroupId::__construct()

Constructs the Gid object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

ContentEntityStorageInterface $group_storage: The group entity storage handler.

Overrides HandlerBase::__construct

File

src/Plugin/views/argument/GroupId.php, line 35

Class

GroupId
Argument handler to accept a group ID.

Namespace

Drupal\group\Plugin\views\argument

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ContentEntityStorageInterface $group_storage) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->groupStorage = $group_storage;
}