public static function FruitPluginManager::create in Plug 7
FruitPluginManager factory method.
Parameters
string $bin: The cache bin for the plugin manager.
Return value
FruitPluginManager The created manager.
2 calls to FruitPluginManager::create()
- plug_example_fruit_plugin_alter in modules/
plug_example/ plug_example.module - Implements hook_fruit_plugin_alter().
- plug_example_yaml_test_page in modules/
plug_example/ plug_example.module - Page callback to test the plugins.
File
- modules/
plug_example/ src/ FruitPluginManager.php, line 62 - Contains \Drupal\plug_example\FruitPluginManager.
Class
- FruitPluginManager
- Name plugin manager.
Namespace
Drupal\plug_exampleCode
public static function create($bin = 'cache') {
return new static(Module::getNamespaces(), _cache_get_object($bin));
}