An explanation of using services in various cases.
Svetoslav Stoyanov's blog
Inject a service in custom class:
with DI for renderer
find . -type f -print | grep php | wc -l
As the cookie work out-of-the-box in the browser, we can use it for rest request also almost out-of-the-box (use 'withCredentials: true' headerOption in a request, do not forget to enable 'supportsCredentials: true' in services.yml alongside other CORS config).
*/15 * * * * wget -O - -q -t
export PATH="$HOME/.config/composer/vendor/bin:$PATH" (or relative to your installation path)
as first line of ~/.bashrc
@variable — Use this style of placeholder for most use-cases. Special characters in the text will be converted to HTML entities.
%variable — Use this style of placeholder to pass text through drupal_placeholder() which will result in HTML escaped text, then wrapped with tags.
:variable — Use this style of placeholder when substituting the value of an href attribute. Values will be HTML escaped, and filtered for dangerous protocols.