You are here

public function EntityHandlerPluginManager::getInstance in CMS Content Sync 8

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

Overrides PluginManagerBase::getInstance

See also

https://www.drupal.org/node/2874934

File

src/Plugin/Type/EntityHandlerPluginManager.php, line 225

Class

EntityHandlerPluginManager
Manages discovery and instantiation of entity 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;
}