You are here

public static function NamePluginManager::create in Plug 7

NamePluginManager factory method.

Parameters

string $bin: The cache bin for the plugin manager.

Return value

NamePluginManager The created manager.

2 calls to NamePluginManager::create()
BasicTest::setUp in modules/plug_example/lib/Drupal/plug_example/Tests/BasicTest.php
plug_example_annotation_test_page in modules/plug_example/plug_example.module
Page callback to test annotation the plugins.

File

modules/plug_example/src/NamePluginManager.php, line 42
Contains \Drupal\plug_example\NamePluginManager.

Class

NamePluginManager
Name plugin manager.

Namespace

Drupal\plug_example

Code

public static function create($bin = 'cache') {
  return new static(Module::getNamespaces(), _cache_get_object($bin));
}