function protected function ProviderBase::setCdnExceptions

8.x-3.x ProviderBase.php protected ProviderBase::setCdnExceptions(array $exceptions)

Sets CDN Provider exceptions, replacing any existing exceptions.

Parameters

\Throwable[] $exceptions: The Exceptions to set.

Return value

static

Class

ProviderBase
CDN Provider base class.

Namespace

Drupal\bootstrap\Plugin\Provider

Source src/Plugin/Provider/ProviderBase.php (line 546)

protected function setCdnExceptions(array $exceptions) {
  $this->cdnExceptions = [];
  foreach ($exceptions as $exception) {
    $this->addCdnException($exception);
  }
  return $this;
}