You are here

public function Group::__construct in Organic groups 8

Constructs a new User instance.

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.

\Drupal\Core\Plugin\Context\ContextProviderInterface $og_context: The OG context provider.

Overrides PluginBase::__construct

File

src/Plugin/views/argument_default/Group.php, line 44

Class

Group
Default argument plugin to provide the group from the current context.

Namespace

Drupal\og\Plugin\views\argument_default

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ContextProviderInterface $og_context) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->ogContext = $og_context;
}