This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/8.x-1.0-alpha2' into 8.x-1.x
- Loading branch information
Showing
12 changed files
with
367 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,6 @@ | |
# Ignore build artifacts. | ||
/build | ||
/.phpunit.result.cache | ||
|
||
# Ignore binary translation files. | ||
*.mo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace Drupal\dg_cookiebot\Plugin\Block; | ||
|
||
use Drupal\Core\Block\BlockBase; | ||
|
||
/** | ||
* Block with link to update cookie settings. | ||
* | ||
* @Block( | ||
* id = "dg_cookiebot_settings_link", | ||
* admin_label = @Translation("Cookie settings link") | ||
* ) | ||
*/ | ||
class CookiebotSettingsLink extends BlockBase { | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function build() { | ||
return [ | ||
'#theme' => 'dg_cookiebot_settings_link', | ||
]; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{# | ||
/** | ||
* @file | ||
* Default theme implementation to present a cookiebot settings link block. | ||
* | ||
* Available variables: | ||
* None | ||
* | ||
* @ingroup themeable | ||
*/ | ||
#} | ||
|
||
<a href="javascript:Cookiebot.renew()">{{ 'Cookie settings'|t }}</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Drupal\Tests\dg_cookiebot\Unit\Plugin\Block; | ||
|
||
use Drupal\dg_cookiebot\Plugin\Block\CookiebotSettingsLink; | ||
use Drupal\Tests\UnitTestCase; | ||
|
||
/** | ||
* @covers \Drupal\dg_cookiebot\Plugin\Block\CookiebotSettingsLink | ||
* | ||
* @group dg_cookiebot | ||
*/ | ||
class CookiebotSettingsLinkTest extends UnitTestCase { | ||
|
||
/** | ||
* Block contains simple render array. | ||
* | ||
* @test | ||
*/ | ||
public function buildContainsSimpleRenderArray(): void { | ||
$block = new CookiebotSettingsLink( | ||
[], | ||
'dg_cookiebot_settings_link', | ||
['provider' => 'dg_cookiebot'] | ||
); | ||
|
||
$expected = ['#theme' => 'dg_cookiebot_settings_link']; | ||
$this->assertArrayEquals( | ||
$expected, | ||
$block->build() | ||
); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: \n" | ||
"POT-Creation-Date: 2020-07-03 13:53+0200\n" | ||
"PO-Revision-Date: 2020-07-03 14:01+0200\n" | ||
"Last-Translator: Peter Decuyper <[email protected]>\n" | ||
"Language-Team: \n" | ||
"Language: de\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"X-Generator: Poedit 2.3.1\n" | ||
"X-Poedit-Basepath: .\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#: modules/contrib/dg_cookiebot/dg_cookiebot.info.yml:0 | ||
msgid "Cookiebot" | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/dg_cookiebot.info.yml:0 | ||
msgid "Provides extra functionality on top of the Cookiebot module." | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/dg_cookiebot.info.yml:0 | ||
msgid "Digipolis" | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/src/Plugin/Block/CookiebotSettingsLink.php:7 | ||
msgid "Cookie settings link" | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/src/Plugin/Filter/CookiebotDeclarationFilter.php:15 | ||
msgid "Replace Cookiebot declaration placeholder" | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/src/Plugin/Filter/CookiebotDeclarationFilter.php:15 | ||
msgid "" | ||
"Replaces the <code>[COOKIEBOT_DECLARATION]</code> placeholder by the actual " | ||
"list of cookies used within the website." | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/templates/dg-cookiebot-settings-link.html.twig:13 | ||
msgid "Cookie settings" | ||
msgstr "Cookie-Einstellungen" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: \n" | ||
"POT-Creation-Date: 2020-07-03 13:53+0200\n" | ||
"PO-Revision-Date: 2020-07-03 14:01+0200\n" | ||
"Last-Translator: Peter Decuyper <[email protected]>\n" | ||
"Language-Team: \n" | ||
"Language: es\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"X-Generator: Poedit 2.3.1\n" | ||
"X-Poedit-Basepath: .\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#: modules/contrib/dg_cookiebot/dg_cookiebot.info.yml:0 | ||
msgid "Cookiebot" | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/dg_cookiebot.info.yml:0 | ||
msgid "Provides extra functionality on top of the Cookiebot module." | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/dg_cookiebot.info.yml:0 | ||
msgid "Digipolis" | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/src/Plugin/Block/CookiebotSettingsLink.php:7 | ||
msgid "Cookie settings link" | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/src/Plugin/Filter/CookiebotDeclarationFilter.php:15 | ||
msgid "Replace Cookiebot declaration placeholder" | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/src/Plugin/Filter/CookiebotDeclarationFilter.php:15 | ||
msgid "" | ||
"Replaces the <code>[COOKIEBOT_DECLARATION]</code> placeholder by the actual " | ||
"list of cookies used within the website." | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/templates/dg-cookiebot-settings-link.html.twig:13 | ||
msgid "Cookie settings" | ||
msgstr "Configuración de cookies" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: \n" | ||
"POT-Creation-Date: 2020-07-03 13:53+0200\n" | ||
"PO-Revision-Date: 2020-07-03 14:00+0200\n" | ||
"Last-Translator: Peter Decuyper <[email protected]>\n" | ||
"Language-Team: \n" | ||
"Language: fr\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"X-Generator: Poedit 2.3.1\n" | ||
"X-Poedit-Basepath: .\n" | ||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||
|
||
#: modules/contrib/dg_cookiebot/dg_cookiebot.info.yml:0 | ||
msgid "Cookiebot" | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/dg_cookiebot.info.yml:0 | ||
msgid "Provides extra functionality on top of the Cookiebot module." | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/dg_cookiebot.info.yml:0 | ||
msgid "Digipolis" | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/src/Plugin/Block/CookiebotSettingsLink.php:7 | ||
msgid "Cookie settings link" | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/src/Plugin/Filter/CookiebotDeclarationFilter.php:15 | ||
msgid "Replace Cookiebot declaration placeholder" | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/src/Plugin/Filter/CookiebotDeclarationFilter.php:15 | ||
msgid "" | ||
"Replaces the <code>[COOKIEBOT_DECLARATION]</code> placeholder by the actual " | ||
"list of cookies used within the website." | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/templates/dg-cookiebot-settings-link.html.twig:13 | ||
msgid "Cookie settings" | ||
msgstr "Paramètres des cookies" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# $Id$ | ||
# | ||
# LANGUAGE translation of Drupal (general) | ||
# Copyright YEAR NAME <EMAIL@ADDRESS> | ||
# Generated from files: | ||
# modules/contrib/dg_cookiebot/dg_cookiebot.info.yml: n/a | ||
# modules/contrib/dg_cookiebot/src/Plugin/Block/CookiebotSettingsLink.php: n/a | ||
# modules/contrib/dg_cookiebot/src/Plugin/Filter/CookiebotDeclarationFilter.php: n/a | ||
# modules/contrib/dg_cookiebot/templates/dg-cookiebot-settings-link.html.twig: n/a | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PROJECT VERSION\n" | ||
"POT-Creation-Date: 2020-07-03 13:53+0200\n" | ||
"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n" | ||
"Last-Translator: NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" | ||
|
||
#: modules/contrib/dg_cookiebot/dg_cookiebot.info.yml:0 | ||
msgid "Cookiebot" | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/dg_cookiebot.info.yml:0 | ||
msgid "Provides extra functionality on top of the Cookiebot module." | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/dg_cookiebot.info.yml:0 | ||
msgid "Digipolis" | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/src/Plugin/Block/CookiebotSettingsLink.php:7 | ||
msgid "Cookie settings link" | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/src/Plugin/Filter/CookiebotDeclarationFilter.php:15 | ||
msgid "Replace Cookiebot declaration placeholder" | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/src/Plugin/Filter/CookiebotDeclarationFilter.php:15 | ||
msgid "Replaces the <code>[COOKIEBOT_DECLARATION]</code> placeholder by the actual list of cookies used within the website." | ||
msgstr "" | ||
|
||
#: modules/contrib/dg_cookiebot/templates/dg-cookiebot-settings-link.html.twig:13 | ||
msgid "Cookie settings" | ||
msgstr "" | ||
|
Oops, something went wrong.