You are here

public function GroupContentEnablerManagerInterface::getPermissionProvider in Group 8

Creates a new permission provider instance.

Parameters

string $plugin_id: The plugin ID for this permission provider.

Return value

\Drupal\group\plugin\GroupContentPermissionProviderInterface A permission provider instance.

Throws

\Drupal\Component\Plugin\Exception\PluginNotFoundException Thrown if the plugin doesn't exist.

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException Thrown if the permission provider couldn't be loaded.

1 method overrides GroupContentEnablerManagerInterface::getPermissionProvider()
GroupContentEnablerManager::getPermissionProvider in src/Plugin/GroupContentEnablerManager.php
Creates a new permission provider instance.

File

src/Plugin/GroupContentEnablerManagerInterface.php, line 104

Class

GroupContentEnablerManagerInterface
Provides a common interface for group content enabler managers.

Namespace

Drupal\group\Plugin

Code

public function getPermissionProvider($plugin_id);