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
uuid: 8b7b6e7f-dab7-446e-b640-37a3d6efb6bd | |
langcode: de | |
status: open | |
dependencies: | |
enforced: | |
module: | |
- webform | |
open: null | |
close: null | |
weight: 0 |
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
<?php | |
namespace Drupal\wt_pricetable\Form; | |
use Drupal\Core\Form\FormBase; | |
use Drupal\Core\Form\FormStateInterface; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Drupal\Core\Entity\EntityTypeManagerInterface; | |
use Drupal\paragraphs\Entity\Paragraph; | |
use Drupal\Component\Render\FormattableMarkup; |
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
./drs php-eval '$query = \Drupal::entityTypeManager()->getStorage("node")->getQuery(); | |
$query->condition("type", ["wt_room", "wt_package"], "IN"); | |
$nodeIds = $query->execute(); | |
$hotelEntities = \Drupal::entityTypeManager()->getStorage("node")->loadMultiple($nodeIds); | |
foreach ($hotelEntities as $hotelEntity) { | |
$hotelEntity->set("remote_datasource", "KOGNITIV"); | |
$hotelEntity->save(); | |
}' |
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
insert into paragraph__FIELD_NEWFIELD (bundle, deleted, entity_id, revision_id, langcode, delta, FIELD_NEWFIELD_value) | |
select type, 0, id, revision_id, langcode, 0, DEFAULT_FIELD_VALUE from paragraphs_item where type = 'PARENT_PARAGRAPH_TYPE'; | |
insert into paragraph_revision__FIELD_NEWFIELD (bundle, deleted, entity_id, revision_id, langcode, delta, FIELD_NEWFIELD_value) | |
select type, 0, id, revision_id, langcode, 0, DEFAULT_FIELD_VALUE from paragraphs_item where type = 'PARENT_PARAGRAPH_TYPE' |
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
//does not work with colors containing alpha | |
@function encodecolor($string) { | |
@if type-of($string) == 'color' { | |
$hex: str-slice(ie-hex-str($string), 4); | |
$string:unquote("#{$hex}"); | |
} | |
$string: '%23' + $string; | |
@return $string; | |
} |
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
<?php | |
namespace Drupal\wt_base; | |
use Symfony\Component\HttpFoundation\RequestStack; | |
use Drupal\Core\PathProcessor\OutboundPathProcessorInterface; | |
use Symfony\Component\HttpFoundation\Request; | |
use Drupal\Core\Render\BubbleableMetadata; | |
/** | |
* Class DefaultService. |
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
cd advanced-options/raw-svg/regular | |
# prefix filenames with 'far-' so we could mix icons from different style set | |
rename 's/^/far-/' *.svg | |
# change opening tag '<svg xmlsn="http://www.w3.org/2000/svg"' into ' <symbol id="current-filename.svg"' | |
perl -i -pe 's/<svg xmlns="http:\/\/www.w3.org\/2000\/svg"/ <symbol id="$ARGV"/g' *.svg | |
# remove the trailng '.svg' from the id | |
perl -i -pe 's/\.svg"/"/g' *.svg | |
# change closing tag from '</svg>' to '</symbol>' | |
perl -i -pe 's/<\/svg>/<\/symbol>/g' *.svg | |
# go into next style directory, repeat with different filename prefix |