public static function ContainerDeriverInterface::create in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php \Drupal\Core\Plugin\Discovery\ContainerDeriverInterface::create()
- 10 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.
38 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.
- ContentEntityDeriver::create in core/modules/ migrate_drupal/ src/ Plugin/ migrate/ source/ ContentEntityDeriver.php 
- Creates a new class instance.
- ContentTranslationContextualLinks::create in core/modules/ content_translation/ src/ Plugin/ Derivative/ ContentTranslationContextualLinks.php 
- Creates a new class instance.
File
- core/lib/ Drupal/ Core/ Plugin/ Discovery/ ContainerDeriverInterface.php, line 25 
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);