public function OgContext::__construct in Organic groups 8
Constructs a new OgContext.
Parameters
\Drupal\Component\Plugin\PluginManagerInterface $plugin_manager: The OgGroupResolver plugin manager.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
File
- src/
ContextProvider/ OgContext.php, line 67
Class
- OgContext
- Provides the group that best matches the current context.
Namespace
Drupal\og\ContextProviderCode
public function __construct(PluginManagerInterface $plugin_manager, ConfigFactoryInterface $config_factory) {
$this->pluginManager = $plugin_manager;
$this->configFactory = $config_factory;
}