Log in to your Managed Hosting Server via SSH
Add these two lines to .bashrc:
<select name="country"> | |
<option value="DE" selected>Deutschland</option> | |
<option value="AT">Österreich</option> | |
<option value="CH">Schweiz</option> | |
<optgroup label="A"> | |
<option value="AF">Afghanistan</option> | |
<option value="EG">Ägypten</option> | |
<option value="AX">Åland</option> | |
<option value="AL">Albanien</option> | |
<option value="DZ">Algerien</option> |
<? if (!empty($image)) : ?> | |
<img src="<?= image_style_url('mini',$image); ?>" alt="Profile image" /> | |
<?php endif; ?> |
<?php | |
/* Script located in the docroot for your Drupal 8 site */ | |
use Drupal\Core\DrupalKernel; | |
use Drupal\Core\Site\Settings; | |
use Symfony\Component\HttpFoundation\Request; | |
$autoloader = require_once __DIR__ . '/core/vendor/autoload.php'; | |
use GuzzleHttp\Client; |
alias drush='~/drush/drush' | |
alias php='/usr/local/bin/php5-53STABLE-CLI' | |
export DRUSH_PHP=/usr/local/bin/php5-53STABLE-CLI |
{# isAdmin? #} | |
{% if UserID == '1' %} | |
{{ kint() }} | |
{% endif %} |
{{ dump(_context|keys) }} |
{# | |
/** | |
* @file | |
* Default theme implementation of an image. | |
* | |
* Available variables: | |
* - attributes: HTML attributes for the img tag. | |
* - style_name: (optional) The name of the image style applied. | |
* | |
* @see template_preprocess_image() |
/** | |
* Implements hook_theme_suggestions_HOOK_alter(). | |
*/ | |
function MYTHEME_theme_suggestions_image_formatter_alter(array &$suggestions, array $variables) { | |
$entity = $variables['item']->getEntity(); | |
$field_name = $variables['item']->getParent()->getName(); | |
$suggestions[] = 'image_formatter__' . $entity->getEntityTypeId() . '__' . $entity->bundle() . '__' . $field_name; | |
} |
<?php | |
/** | |
* Implements hook_theme_suggestions_HOOK_alter(). | |
*/ | |
function MYTHEME_theme_suggestions_block_alter(array &$suggestions, array $variables) | |
{ | |
$block = $variables['elements']; | |
$blockType = $block['#configuration']['provider']; | |
if ($blockType == "block_content") { |