Select:
$con = \Drupal\Core\Database\Database::getConnection();
$query = $con->select('table_name', 't')
->fields('t', ['field_1', 'field_2']);
Tutorials - Drupal
By editor, 10 June, 2016
By editor, 8 June, 2016
Tags
What is drupal behaviors ?
Drupal behaviors allow to execute javascpts in particular context and / or pass data from drupal to client side java script.
By editor, 7 June, 2016
By editor, 4 June, 2016
By editor, 2 June, 2016
By editor, 2 June, 2016
Tags
Example : Execute JS only in the front page.
This Script run whin the body
tag contains class='front'
By editor, 2 June, 2016
Tags
Example : Execute JS only in the front page.
This Script run whin the body
tag contains class='front'
By editor, 31 May, 2016
You can't change the body of this block fron the user interface. But you can do that using a small custom module using hook_block_view_alter().
By editor, 29 May, 2016