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 June, 2017 Test a webpage for Retina display Tags Testing CSS Theming To test retina display, just adjust the screen pixel ratio.
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, 8 March, 2017 Display a web page as print. Media Print Emulate For development and test Tags CSS Theming Media Print Emulate on Chrome (Tested on Chrome Version 56)
By editor, 30 October, 2016 Theme Negotiators - Switch theme dynamically Tags Drupal 8 Code Theming Create a custom module (here : example) For active themes by route you first have to define a service in your $module.services.yml file: On example.services.yml Add:
By editor, 7 October, 2016 CSS Font Styling Tags CSS Code Theming Standard weights: medium -> font-weight : 500; semi-bold ->font-weight : 600; Font Face Example