public static function D7FieldablePanelsPaneDeriver::create in Fieldable Panels Panes (FPP) 1.0.x
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
File
- src/
Plugin/ migrate/ D7FieldablePanelsPaneDeriver.php, line 61
Class
- D7FieldablePanelsPaneDeriver
- Deriver for Drupal 7 fieldable panel panes based on pane types.
Namespace
Drupal\fieldable_panels_panes\Plugin\migrateCode
public static function create(ContainerInterface $container, $base_plugin_id) {
// Translations don't make sense unless we have content_translation.
return new static($base_plugin_id, $container
->get('module_handler')
->moduleExists('content_translation'), $container
->get('migrate_drupal.field_discovery'));
}