public function ChangeSingleOgMembershipRoleBase::defaultConfiguration in Organic groups 8
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides ConfigurableActionBase::defaultConfiguration
File
- src/
Plugin/ Action/ ChangeSingleOgMembershipRoleBase.php, line 74
Class
- ChangeSingleOgMembershipRoleBase
- Provides a base class for operations to change a user's group membership.
Namespace
Drupal\og\Plugin\ActionCode
public function defaultConfiguration() {
$role_names = $this
->getOgRoleLabels();
reset($role_names);
return [
'role_name' => key($role_names),
];
}