You are here

public function Group::getArgument in Organic groups 8

Return the default argument.

This needs to be overridden by every default argument handler to properly do what is needed.

Overrides ArgumentDefaultPluginBase::getArgument

File

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

Class

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

Namespace

Drupal\og\Plugin\views\argument_default

Code

public function getArgument() {
  $group = $this
    ->getGroup();
  if ($group instanceof ContentEntityInterface) {
    return $group
      ->id();
  }
}