27 Jun, 16

England has officially brexited Euro 2016, bravo Iceland!!!! Cold freezing awesome!!!!

16 Jun, 16

Getting variables in Drupal 8 is now as short as \Drupal::state()->get(‘variable_name’, ‘default_value’)

16 Jun, 16

Here’s how you get node abs url in D8: \Drupal\Core\Url::fromRoute('entity.node.canonical', ['node' => 1], ['absolute' => TRUE])->toString()

16 Jun, 16

RT @pycoders: django-river - Django Workflow Library http://bit.ly/1szcTn0

06 Jun, 16

#Drupal 8: to get user fields U type this combo: \Drupal\user\Entity\User::load(\Drupal::currentUser()->id()); Try not to break your fingers

26 May, 16

"Never memorize something that you can look up." - Albert Einstein... #Drupal 8 I'm looking at you!

24 May, 16

In D7 drupal_get_form(‘user_login’) was too short, so got replaced by \Drupal::formBuilder()->getForm(Drupal\user\Form\UserLoginForm::class)

06 May, 16

Snippet: How to check for user access or permission in Drupal 8

1
2
3
4
5
6
7
  1. <?php
  2. // Get current user
  3. $user = \Drupal::currentUser();
  4. // Check for permission
  5. $user->hasPermission('administer content');
Read now
03 May, 16

How To Disable #Drupal 8 caching during development https://www.drupal.org/node/2598914 Definitely Drupal 8 isn’t the most developer friendly thing now…

02 May, 16

ES6 For Django Lovers - https://www.caktusgroup.com/blog/2016/05/02/es6-django-lovers/ #js #python #django