I hereby claim:
- I am waako on github.
- I am waako (https://keybase.io/waako) on keybase.
- I have a public key whose fingerprint is D262 BF75 7D2A 87EC 8CB3 6971 8471 78CE AF42 256B
To claim this, I am signing this object:
<div style="background-image:url('{{ hero_image_url }}');"> | |
This has a background image | |
</div> |
<?php | |
use Drupal\Core\Url; | |
/** | |
* Implements hook_preprocess_HOOK() for block.html.twig. | |
*/ | |
function themename_preprocess_block(&$variables) { | |
// Get Title of Block's parent Node. | |
$request = \Drupal::request(); |
<?php | |
/** | |
* Implements hook_preprocess_HOOK for field--field-structured-content-section.html.twig | |
*/ | |
function TEMPLATE_preprocess_field__field_structured_content_section(&$variables) { | |
$items = $variables['items']; | |
foreach ($items as &$item) { | |
$paragraph = $item['content']['#paragraph']; | |
$para_type = $paragraph->getType(); |
<?php $max_delta = count($items) - 1; ?> | |
<div class="<?php print $classes; ?>"<?php print $attributes; ?>> | |
<?php if (!$label_hidden): ?> | |
<div class="field-label"<?php print $title_attributes; ?>><?php print $label ?>: </div> | |
<?php endif; ?> | |
<div class="field-items content"<?php print $content_attributes; ?>> | |
<?php foreach ($items as $delta => $item): ?> | |
<?php | |
$classes = 'grid-3 '; | |
$tmp = $delta % 4; |
<?php foreach($rows as $row): ?> | |
<h3><?php print $row['field_collection_name_title']; ?></h3> | |
<?php if ($row['field_collection_name_subtitle']): ?> | |
<?php print render($row['field_collection_name_subtitle']['safe_value']); ?> | |
<?php endif; ?> | |
<?php print render($row['field_collection_name_content']['safe_value']); ?> | |
<?php endforeach; ?> |
I hereby claim:
To claim this, I am signing this object:
Most relevant result for github search of 'docker drupal' https://github.com/ricardoamaro/docker-drupal-nginx
Interesting Drupal Docker build via Panamax
WIP: https://github.com/RobLoach/forge/tree/master/drupal & https://github.com/RobLoach/k-stack
In the meantime, in terms of front-end optimisation
Page speed results:
Drupal methods of optimisation: