PHP Classes

File: Resources/doc/index.rst

Recommend this page to a friend!
  Classes of Manolo Salsas   Msalsas PHP GDPR Consent Banner Bundle   Resources/doc/index.rst   Download  
File: Resources/doc/index.rst
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Msalsas PHP GDPR Consent Banner Bundle
Present content banners for Symfony Web projects
Author: By
Last change: Fix translations config
Date: 1 year ago
Size: 1,192 bytes


Class file image Download
Getting Started With MsalsasGdprConsentBannerBundle =================================================== This bundle provides a GDPR consent banner. Prerequisites ------------- This version of the bundle requires Symfony 4.0+. Install ------- .. code-block:: bash composer require msalsas/gdpr-consent-banner-bundle Configuration ------------- .. code-block:: yaml # config/packages/msalsas_gdpr_consent_banner.yaml msalsas_gdpr_consent_banner: css: default # [default|none] has_translations: true # [true|false] text_message: '' # [{message}|{key}] accept_message: '' # [{message}|{key}] fade_time: 2 time_to_expire: 30 days Routing ------- .. code-block:: yaml # config/routes/msalsas_gdpr_consent_banner.yaml accept_gdpr_consent_banner: path: /accept-gdpr-consent-banner controller: Msalsas\GdprConsentBannerBundle\Controller\MsalsasGdprConsentBannerController:acceptGdprConsentBanner methods: POST Usage ----- Include this line in the footer of your base twig file .. code-block:: twig {% include "@msalsas_gdpr_consent_banner/msalsas_gdpr_consent_banner_widget.html.twig" %}