By editor, 6 June, 2017 Run JavaScript code via web browser console. Tags Drupal 8 Code JavaScript Features Note : Following examples are tested on FireFox Version 52. Open Web browser console. F12 Method 1 . Press F12 and click on "Console" Method 2 . Press Ctrl + Shift + K
By editor, 5 June, 2017 Views template suggestion files Tags Drupal 8 Code Views Theming All views templates can be overridden with a variety of names, using the view, the display ID of the view, the display type of the view, or some combination thereof.
By editor, 2 June, 2017 Cron on Drupal 8 and Linux Tags Drupal 8 Code Linux Server Run cron by drush drush cron Add cron hook to a custom module. /** * Implement hook_cron() */ function MYMODULE_cron() { // Your codes. }
By editor, 23 May, 2017 Redirect a user after login. Redirection on Drupal 8. Tags Drupal 8 Code Module User To make a redirection after user login, we can use the hook hook_user_login(). Note : You cannot use $form_state->setRedirectUrl() directly in the form alter, since it will be overwritten by UserForm::submitForm().
By editor, 19 May, 2017 The website encountered an unexpected error. Please try again later. Tags Drupal 8 Error The website encountered an unexpected error. Please try again later. This is a generic message. To find the problem refer to server log. (For example : /var/log/apache/error.log on apache)