You are here

public function FieldHandlerPluginManager::getInstance in CMS Content Sync 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/Type/FieldHandlerPluginManager.php \Drupal\cms_content_sync\Plugin\Type\FieldHandlerPluginManager::getInstance()
  2. 2.1.x src/Plugin/Type/FieldHandlerPluginManager.php \Drupal\cms_content_sync\Plugin\Type\FieldHandlerPluginManager::getInstance()

Overrides PluginManagerBase::getInstance

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\Type

Code

public function getInstance(array $options) {
  if (isset($options['id'])) {
    return $this
      ->createInstance($options['id']);
  }
  return null;
}