This file contains hidden or 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
{% if item.content['#block_content'].field_image_right.value == '1' %} | |
{% set options = options|merge(['image-right']) %} | |
{% endif %} |
This file contains hidden or 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
{% set bundle = item['content']['#block_content'].bundle() %} |
This file contains hidden or 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
admin_toolbar adminimal_admin_toolbar advanced_text_formatter background_image_formatter backup_migrate bg_image_formatter blazy block_class computed_field context ctools custom_formatters devel disable_modules ds field_formatter_class field_group field_group_background_image field_group_link fieldblock filefield_sources fontyourface imce inline_entity_form layout_plugin libraries link_css mailchimp menu_block menu_trail_by_path metatag node_class page_manager pathauto retina_images slick slick_views token twig_tweak |
This file contains hidden or 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
$nid = \Drupal::routeMatch()->getRawParameter('node'); | |
$node = \Drupal::routeMatch()->getParameter('node'); | |
$node->bundle(); |
This file contains hidden or 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
drush dl modulename && drush updb |
This file contains hidden or 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
sudo wget -O /usr/local/bin/drush http://files.drush.org/drush.phar | |
sudo chmod 755 /usr/local/bin/drush | |
sudo apt-get install php5-mysql |
This file contains hidden or 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
$box = entity_load_single('box', $bid); |
This file contains hidden or 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
service webmin restart | |
/etc/webmin/miniserv.conf |
This file contains hidden or 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
$output = ''; | |
foreach ($variables['#items'] as $item) { | |
setlocale(LC_TIME, 'de_DE', 'de_DE.UTF-8'); | |
$output .= strftime('%e %B %G', $item['value']); | |
} | |
return $output; |
This file contains hidden or 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
$contexts = context_active_contexts(); | |
if (array_key_exists('rjc_logo', $contexts)) : | |
print 'RJC'; | |
endif; |