templates
Table of Contents
Classes
- BannerTemplates
- Predefined templates for cookie banner.
- BlockerStorage
- This storage persists and reads content blocker templates from `wp_rcb_template` database table.
- CloudDataSource
- Load templates from cloud API, but not every time when consumer should be invalidated. In case
of e.g. recalculations of middlewares, load the `before_middleware` value from database instead
of API fetch.
- ConsumerMiddleware
- Consumer middleware for both service and blocker templates.
- PersistTranslationsMiddlewareImpl
- Pool middleware for both service and blocker templates and persist translations to `wp_rcb_template_translation`.
- RecommendedHooksMiddleware
- Set `recommended` through a hook / filter for both service and blocker templates.
- ServiceLocalDataSource
- Local data source for the template consumer which adds the "Real Cookie Banner" template
to our data sources as this is never read through e.g. the service cloud.
- ServiceStorage
- This storage persists and reads service templates from `wp_rcb_template` database table.
- ServiceTemplateTechnicalHandlingIntegration
- This class is only needed for the `RCB/Templates/TechnicalHandlingIntegration` filter.
- StorageHelper
- Helper functionality for common storage operations for a given consumer.
- TemplateConsumers
- Common service cloud consumer manager to consume local and external templates (e.g. service cloud).
- TranslationsMiddlewareImpl
- See `TranslationsMiddleware`.