Replace all following instances of THEMENAME with the actual machine name of
You may also feel free to replace the provided URLs with your own. Most of the
popular CDN API output can be easily parsed, however you may need to provide
addition parsing in your custom CDN Provider if you're not getting the desired
If you're truly interested in implementing a CDN Provider, it is highly
recommended that you read the accompanying PHP based documentation on the
classes and methods responsible for actually retrieving, parsing and caching
the data from the CDN's API.
Create a file at ./THEMENAME/src/Plugin/Provider/MyCdn.php with the
Once you have saved, you must rebuild your cache for this new plugin to be
discovered. This must happen anytime you make a change to the actual file name
or the information inside the @BootstrapProvider annotation.
To rebuild your cache, navigate to admin/config/development/performance and
click the Clear all caches button. Or if you prefer, run drush cr from the
Voilà! After this, you should have a fully functional @BootstrapProvider