public static function PluginSelectorDeriver::create in Plugin 8.2
Creates a new class instance.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the fetcher.
string $base_plugin_id: The base plugin ID for the plugin ID.
Return value
static Returns an instance of this fetcher.
Overrides ContainerDeriverInterface::create
1 call to PluginSelectorDeriver::create()
- PluginSelectorDeriverTest::testCreate in tests/
src/ Unit/ Plugin/ Field/ FieldWidget/ PluginSelectorDeriverTest.php - @covers ::create @covers ::__construct
File
- src/
Plugin/ Field/ FieldWidget/ PluginSelectorDeriver.php, line 32
Class
- PluginSelectorDeriver
- Derives plugin selector field widgets.
Namespace
Drupal\plugin\Plugin\Field\FieldWidgetCode
public static function create(ContainerInterface $container, $base_plugin_id) {
return new static($container
->get('plugin.manager.plugin.plugin_selector'));
}