Updates composer.lock hash without updating any packages
composer update --lock
{# Loop through items #} | |
{% for key, child in elements if key|first != '#' %} | |
<div class="{{ loop.first ? 'class-1' : 'class-2' }}">{{ child }}</div> | |
{% endfor %} |
Updates composer.lock hash without updating any packages
composer update --lock
if ($entity->hasTranslation('en')) { | |
$translated_entity = $entity->getTranslation('en'); | |
$translated_title = $translated_entity->getTitle(); | |
} |
// 2 digit code | |
$language = \Drupal::languageManager()->getCurrentLanguage()->getId(); | |
// Name | |
$language = \Drupal::languageManager()->getCurrentLanguage()->getName(); |
$bundle_label = \Drupal::entityTypeManager() | |
->getStorage('node_type') | |
->load($node->bundle()) | |
->label(); |
<pre>{{ dump() }}</pre> | |
{{ dump(_context|keys) }} | |
<ol> | |
{% for key, value in _context %} | |
<li>{{ key }}</li> | |
{% endfor %} | |
</ol> |
This article walks you through how to get the ID of any YouTube video.
You may be watching the video or just happened to visit a link to a video. The video ID will be located in the URL of the video page, right after the v=
URL parameter.
@import "susy"; | |
@import "include-media"; | |
$susy-columns: 12; | |
$susy-gutter-width: 15px; | |
$susy: ( | |
columns: $susy-columns, | |
gutter-position: inside-static, // fixed-width width gutters | |
column-width: 120px, |