protected function FieldDiscovery::getCckPluginManager in Drupal 8
Gets the deprecated CCK Plugin Manager service as a BC shim.
We don't inject this service directly because it is deprecated, and we don't want to instantiate the plugin manager unless we have to, to avoid triggering deprecation errors.
Return value
\Drupal\migrate_drupal\Plugin\MigrateCckFieldPluginManagerInterface The CCK Plugin Manager.
1 call to FieldDiscovery::getCckPluginManager()
- FieldDiscovery::getFieldPlugin in core/
modules/ migrate_drupal/ src/ FieldDiscovery.php - Returns the appropriate field plugin for a given field type.
File
- core/
modules/ migrate_drupal/ src/ FieldDiscovery.php, line 302
Class
- FieldDiscovery
- Provides field discovery for Drupal 6 & 7 migrations.
Namespace
Drupal\migrate_drupalCode
protected function getCckPluginManager() {
if (!$this->cckPluginManager) {
$this->cckPluginManager = \Drupal::service('plugin.manager.migrate.cckfield');
}
return $this->cckPluginManager;
}