By editor, 19 November, 2015 Get the current page URI on Drupal 8 Tags Drupal 8 Code Here an example to get the current page path programmatically in Drupal 8 $current_url = Url::fromRoute('<current>'); $path = $current_url->toString();
By editor, 18 November, 2015 Save user / temporary data on $_SESSION Tags Drupal 8 Code User Store data on session. Example: $session = new \Symfony\Component\HttpFoundation\Session\Session(); $session->set('var_name', $session->get('var_name',0) + 1); drupal_set_message($session->get('var_name'));
By editor, 18 November, 2015 Add CSS stylesheets to a module (CKEditor) Tags Drupal 8 Theming Code Drupal 9 There are several ways to do that.
By editor, 17 November, 2015 Get taxonomy terms of a vocabulary - Drupal 8 Tags Drupal 8 Code Taxonomy Using entityQuery, you can get the taxonomy terms of a particular vocabulary.
By editor, 17 November, 2015 Get taxonomy vocabulary list - Drupal 8 Tags Drupal 8 Code Taxonomy In drupal 8, this retrun taxonomy vocabularies as an array. $vocabularies = \Drupal\taxonomy\Entity\Vocabulary::loadMultiple();
By editor, 16 November, 2015 Add "Comment" Field Tags Drupal 8 Settings Comments are set as a field, so by default it is not present. To add comment field Goto: Admin -> Structure -> Content types ->"YOUR CONTENT" ->Manage fields->Add field ->Select 'Comments' on 'Re-use an existing field' and Save.
By editor, 16 November, 2015 Install Drupal 8 with Virtualmin - Error 500 Tags Drupal 8 Server Error Reson 1 : FollowSymLinks By default, virtualmin does not support Options +FollowSymLinks (on .htaccess). Solution 1 : Recommended
By editor, 15 November, 2015 Create a simple module for Drupal 8 - Step 3 - Create Dynamic Page/ Block Tags Drupal 8 Module Cache In addition to the Step 2, Just add $form['#cache']['disabled'] = TRUE; $form['#cache']['max_age'] = 0;
By editor, 14 November, 2015 Create a simple module for Drupal 8 - Step 2 - Create Simple Page Tags Drupal 8 Module 1. Create a info.yml file Here : test.info.yml name: 'Test Module' description: 'Test module for Drupal8.ovh' type: module core: 8.x varsion: 0.1-dev package: Test