$bid = 'myblock';
$block = \Drupal\block_content\Entity\BlockContent::load($bid);
$render = \Drupal::entityTypeManager()->getViewBuilder('block_content')->view($block);
$block_manager = \Drupal::service('plugin.manager.block');
helpfull links | |
(1) https://gist.github.com/cbednarski/5379830 | |
(2) http://www.clarifylinux.org/2012/04/ubuntu-1204-tweak-and-hack-round-up.html | |
(3) http://jeffhendricks.net/?p=68 | |
(4) BEST for 64 bit http://www.randomhacks.co.uk/how-to-install-balsamiq-mockups-on-ubuntu-13-10/ | |
The steps I did | |
RUN>> | |
locate libgnome-keyring.so /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 |
#!/bin/bash | |
# Get all Drupal sites | |
sites=`find . -maxdepth 1 -type d -print | grep -v '/all$' | grep -v '/default$' | grep -v '\.$'` | |
echo "Choose the commande to execute : " | |
echo "1. update" | |
echo "2. put sites offline" | |
echo "3. put sites online" | |
echo "4. clear all cache" |
Allow about one hour to follow this tutorial and become familiar with BLT. To save time, create the Acquia Cloud Free environment before you start the tutorial.
This tutorial assumes you are on a Mac, but I also wrote a quick start for Drupal and BLT on Windows 10.
<?php | |
namespace Drupal\mymodule\Form; | |
use Drupal\Core\Form\FormBase; | |
use Drupal\Core\Form\FormStateInterface; | |
/** | |
* Provides a custom form. | |
*/ |
- Change the root password! | |
- System Settings > Security | |
- General: Set Password required to "instant" | |
- FileVault: activate | |
- System Setting > Keyboard | |
- Set all key speeds to "fast" | |
- Mark checkbox to use "fn" keys without option key | |
- Generate SSH-Key: ssh-keygen -t rsa -C "[email protected]" -b 2048 | |
- Change desktop background :) | |
- Install PHPstorm + Java |