core23/gdpr-bundle

This bundle provides a GDPR conform cookie information inside the sonata-project.

1.3.1 2020-03-22 12:24 UTC

README

Latest Stable Version Latest Unstable Version License

Total Downloads Monthly Downloads Daily Downloads

Continuous Integration Code Coverage

This bundle provides a GDPR conform cookie information inside the sonata-project.

Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

composer require core23/gdpr-bundle

Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in config/bundles.php file of your project:

// config/bundles.php

return [
    // ...
    Core23\GDPRBundle\Core23GDPRBundle::class => ['all' => true],
];

Assets

It is recommended to use webpack / webpack-encore to include the GdprPopup.js and GdprPopup.css file in your page. These files are located in the assets folder.

Usage

{# template.twig #}

{{ sonata_block_render({ 'type': 'core23_gdpr.block.information' }, {
    'url': 'https://example.com/gdpr',
    'text': 'Example text' // optional
}) }}

License

This bundle is under the MIT license.