function public function ProviderBase::getCdnExceptions

8.x-3.x ProviderBase.php public ProviderBase::getCdnExceptions($reset = TRUE)

Retrieves any CDN ProviderException objects triggered during discovery.

Note: this is primarily used as a way to communicate in the UI that the discovery of the CDN Provider's assets failed.

Parameters

bool $reset: Flag indicating whether to remove the Exceptions once they have been retrieved.

Return value

\Drupal\bootstrap\Plugin\Provider\ProviderException[] An array of CDN ProviderException objects, if any.

Overrides ProviderInterface::getCdnExceptions

Class

ProviderBase
CDN Provider base class.

Namespace

Drupal\bootstrap\Plugin\Provider

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

public function getCdnExceptions($reset = TRUE) {
  $exceptions = $this->cdnExceptions;
  if ($reset) {
    $this->cdnExceptions = [];
  }
  return $exceptions;
}