PHPackages                             druidfi/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. druidfi/iframe\_cookie\_consent

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

druidfi/iframe\_cookie\_consent
===============================

Adds Ckeditor plugin which converts iframe embeds to support cookie consent

1.3.2(2y ago)04.3k[1 PRs](https://github.com/druidfi/iframe_cookie_consent/pulls)GPL-2.0-or-laterPHPPHP ^8.0

Since May 9Pushed 1y agoCompare

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

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

Drupal module drupal/iframe\_cookie\_consent
============================================

[](#drupal-module-drupaliframe_cookie_consent)

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 module.

```
/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 embedded to content in many way so the easiest way to support fields are create or modify field template file.

Here is an example.

```
