Before installing the latest Cookiebar version (2.0), make sure that the last version (1.x) of the Cookiebar was previously installed to fully pass all previous migrations.
- Moving classes into the Symfony structure
- Namespaces have changed
- Removing deprecations
- The Cookiebar module was converted into a FragmentController
- The Cookiebar content element was converted into a FragmentController
Classes
- The
CookieHandler
class has renamed toCookie
- The
CookieConfig
class has renamed toGlobalConfig
Models
- The
CookieConfigModel
model has renamed toGlobalConfigModel
Methods
- The
blockAction()
method has been renamed toblock()
inCookiebarController
class - The
prepareAction()
method has been renamed toexecute()
inCookiebarController
class - The
compileGoogleConsentMode()
method has been renamed toaddGoogleConsentMode()
inGlobalConfig
class - The
compileTagManager()
method has been renamed toaddTagManager()
inGlobalConfig
class - The
compileScript()
method has been renamed toaddCustomScript()
inGlobalConfig
class - The
compileScript()
method has been renamed toaddCustomScript()
inCookie
class - The
compileTemplate()
method has been renamed toaddCustomTemplate()
inCookie
class - The
compileGoogleAnalytics()
method has been renamed toaddGoogleAnalytics()
inCookie
class - The
compileGoogleConsentMode()
method has been renamed toaddGoogleConsentMode()
inCookie
class - The
compileFacebookPixel()
method has been renamed toaddFacebookPixel()
inCookie
class - The
compileMatomo()
method has been renamed toaddMatomo()
inCookie
class - The
compileMatomoTagManager()
method has been renamed toaddMatomoTagManager()
inCookie
class - The
compileEtracker()
method has been renamed toaddEtracker()
inCookie
class
Hooks
- The
compileCookieType
hook has been renamed toaddCookieType
inCookie
class - The
compileCookieConfigType
hook has been renamed toaddGlobalConfigType
inGlobalConfig
class
- Contao 4.13 / Contao 5.0
- PHP 8.1
- Symfony 5.4 / Symfony 6.0
- Tracking can be disabled while logged in to the backend (New checkbox in the configuration)
- The integration of the Google Tag Manager via the global configuration has changed
- The appearance was slightly adjusted (CSS)