public static function ContainerDeriverInterface::create in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php \Drupal\Core\Plugin\Discovery\ContainerDeriverInterface::create()
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.
26 methods override ContainerDeriverInterface::create()
- BlockContent::create in core/
modules/ block_content/ src/ Plugin/ Derivative/ BlockContent.php - Creates a new class instance.
- ConfigTranslationContextualLinks::create in core/
modules/ config_translation/ src/ Plugin/ Derivative/ ConfigTranslationContextualLinks.php - Creates a new class instance.
- ConfigTranslationLocalTasks::create in core/
modules/ config_translation/ src/ Plugin/ Derivative/ ConfigTranslationLocalTasks.php - Creates a new class instance.
- ContentTranslationContextualLinks::create in core/
modules/ content_translation/ src/ Plugin/ Derivative/ ContentTranslationContextualLinks.php - Creates a new class instance.
- ContentTranslationLocalTasks::create in core/
modules/ content_translation/ src/ Plugin/ Derivative/ ContentTranslationLocalTasks.php - Creates a new class instance.
File
- core/
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);