You are here

public function ProviderManager::deleteProviderConfiguration in Persistent URL 8

1 call to ProviderManager::deleteProviderConfiguration()
ProviderManager::saveProviderConfiguration in src/Plugin/ProviderManager.php

File

src/Plugin/ProviderManager.php, line 81

Class

ProviderManager

Namespace

Drupal\purl\Plugin

Code

public function deleteProviderConfiguration($providerId) {
  $this->connection
    ->delete('purl_providers_settings')
    ->condition('provider', $providerId)
    ->execute();
  $definitions = $this
    ->findDefinitions();
  $definitions[$providerId] = array_merge($definitions[$providerId], array(
    'method' => null,
    'settings' => array(),
  ));
  $this
    ->setCachedDefinitions($definitions);
}