public function ChangeOgMembershipStateBase::__construct in Organic groups 8
Constructs an ApprovePendingOgMembership 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.
\Drupal\og\OgAccessInterface $og_access: The OG access service.
Overrides PluginBase::__construct
File
- src/
Plugin/ Action/ ChangeOgMembershipStateBase.php, line 39
Class
- ChangeOgMembershipStateBase
- Base class for actions that change the state of a membership.
Namespace
Drupal\og\Plugin\ActionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, OgAccessInterface $og_access) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->ogAccess = $og_access;
}