setCacheBackend($cache_backend, 'rest_plugins'); $this->alterInfo('rest_resource'); } /** * {@inheritdoc} * * @deprecated in Drupal 8.2.0. * Use Drupal\rest\Plugin\Type\ResourcePluginManager::createInstance() * instead. * * @see https://www.drupal.org/node/2874934 */ public function getInstance(array $options){ if (isset($options['id'])) { return $this->createInstance($options['id']); } } }