public static function ContainerDeriverInterface::create in Plug 7
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.
File
- lib/
Drupal/ Core/ Plugin/ Discovery/ ContainerDeriverInterface.php, line 30 - Contains \Drupal\Core\Plugin\Discovery\ContainerDeriverInterface.
Class
- ContainerDeriverInterface
- Provides additional plugin definitions based on an existing definition using service injection.
Namespace
Drupal\Core\Plugin\DiscoveryCode
public static function create(ContainerInterface $container, $base_plugin_id);