PHPackages                             tvalimaa/iframe\_cookie\_consent - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tvalimaa/iframe\_cookie\_consent

ActiveDrupal-module[Utility &amp; Helpers](/categories/utility)

tvalimaa/iframe\_cookie\_consent
================================

Adds Ckeditor plugin which converts Youtube iframe embeds to support cookie consent

1.3.2(1y ago)13.7k1GPL-2.0-or-laterPHP

Since May 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tvalimaa/iframe_cookie_consent)[ Packagist](https://packagist.org/packages/tvalimaa/iframe_cookie_consent)[ Docs](https://github.com/tvalimaa/iframe_cookie_consent)[ RSS](/packages/tvalimaa-iframe-cookie-consent/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (1)Versions (5)Used By (0)

Iframe-cookie-consent-with-YouTube
==================================

[](#iframe-cookie-consent-with-youtube)

Website content loaded in iframes from third party content providers, for example YouTube may set cookies and thereby require a visitor's consent.

In this module
--------------

[](#in-this-module)

This module adds Ckeditor plugin which convert Youtube iframe embeds to support cookie consent's. You can choose one of these values: 'preferences', 'statistics', or 'marketing' as data-cookieconsent attribute.

You will find these settings under Content authoring / Iframe cookie consent

/admin/config/content/iframe\_cookie\_consent

How to use
----------

[](#how-to-use)

Go Configuration / Content authoring / Text formats and editors and edit text format which you want to use Iframe cookie consent.

/admin/config/content/formats/

Now under Enabled filters you will see Iframe cookie consent which you just enable

### Field support

[](#field-support)

Youtube video can be embed to content in many way so easiest way to support fields are create or modify field template file.

Here is an example.

```
