-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEATURE: cookie-cutter moved to own repo
- Loading branch information
Florian Heinze
committed
Aug 11, 2020
1 parent
546cbcb
commit 869c3aa
Showing
76 changed files
with
7,896 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.DS_Store | ||
/node_modules/ | ||
.idea | ||
yarn-error.log |
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 @@ | ||
v14 |
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,5 @@ | ||
*.hbs | ||
Resources/Public | ||
Resources/Private/Fusion | ||
Resources/Private/JavaScript/*Compiled.js | ||
Resources/Private/KlaroTranslations/*.yml |
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,3 @@ | ||
{ | ||
"phpVersion": "7.2" | ||
} |
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,33 @@ | ||
<?php | ||
namespace Sandstorm\CookieCutter\DataSource; | ||
|
||
use Neos\Flow\Annotations as Flow; | ||
use Neos\ContentRepository\Domain\Model\NodeInterface; | ||
use Neos\Neos\Service\DataSource\AbstractDataSource; | ||
use Sandstorm\CookieCutter\Eel\Helper\CookieCutterConfig; | ||
|
||
class ConsentGroupsDataSource extends AbstractDataSource | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
protected static $identifier = 'sandstorm-consent-groups'; | ||
|
||
/** | ||
* @Flow\InjectConfiguration(package="Sandstorm.CookieCutter", path="groups") | ||
*/ | ||
protected $groups; | ||
|
||
public function getData(NodeInterface $node = null, array $arguments = []) | ||
{ | ||
$CookieCutterConfig = new CookieCutterConfig(); | ||
$options = []; | ||
foreach ($this->groups as $name => $group) { | ||
$label = isset($group["title"]) | ||
? $CookieCutterConfig->translate($group["title"]) | ||
: $name; | ||
$options[$name] = ['label' => $label]; | ||
} | ||
return $options; | ||
} | ||
} |
Oops, something went wrong.