By editor, 23 January, 2018 JavaScript useful tips and examples Tags JavaScript Code Get HTTP Header information From JavaScript Note : It's not possible to read the current headers. You could make another request to the same URL and read its headers, but there is no guarantee that the headers are exactly equal to the current.
By editor, 22 January, 2018 FormattableMarkup : Add parameters, links to a text, table cell data. Tags Drupal 8 Code Theming Create a customizable text. Example : use Drupal\Component\Render\FormattableMarkup; $text = new FormattableMarkup('My name is @name', ['@name' => "The name"]);
By editor, 19 January, 2018 Event dispatcher. Create event, Dispatch and Subscribe. Tags Drupal 8 Code Module Services Hook Drupal's event system allow to create triggers when an event has been happened like create a custom hook on drupal 7.
By editor, 19 January, 2018 Event Subscriber to replace hook_boot and hook_init Tags Drupal 8 Code Services Hook Use Event Subscriber service. The EventSubscriber allow to execute an action on boot as hook_boot or hook_init of drupal 7. Example.