public function FieldHandlerPluginManager::getInstance in CMS Content Sync 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/Type/FieldHandlerPluginManager.php \Drupal\cms_content_sync\Plugin\Type\FieldHandlerPluginManager::getInstance()
- 2.1.x src/Plugin/Type/FieldHandlerPluginManager.php \Drupal\cms_content_sync\Plugin\Type\FieldHandlerPluginManager::getInstance()
Overrides PluginManagerBase::getInstance
Deprecated
in Drupal 8.2.0. Use Drupal\rest\Plugin\Type\ResourcePluginManager::createInstance() instead.
See also
https://www.drupal.org/node/2874934
File
- src/
Plugin/ Type/ FieldHandlerPluginManager.php, line 50
Class
- FieldHandlerPluginManager
- Manages discovery and instantiation of field handler plugins.
Namespace
Drupal\cms_content_sync\Plugin\TypeCode
public function getInstance(array $options) {
if (isset($options['id'])) {
return $this
->createInstance($options['id']);
}
return null;
}