public static function PdbBlockDeriver::create in Decoupled Blocks 8
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 PdbBlockDeriver::create()
- PdbBlockDeriverTest::testCreate in tests/
src/ Unit/ Plugin/ Derivative/ PdbBlockDeriverTest.php - Tests the create method.
File
- src/
Plugin/ Derivative/ PdbBlockDeriver.php, line 37
Class
- PdbBlockDeriver
- Provides a deriver for pdb blocks.
Namespace
Drupal\pdb\Plugin\DerivativeCode
public static function create(ContainerInterface $container, $base_plugin_id) {
return new static($container
->get('pdb.component_discovery'));
}