How to display site logo, name, and slogan in twig template

In Drupal 8/9 to display site logo, name, and slogan in page.html.twig by using hook_preprocess_page() function.
Note: The logo image file must be present in the root folder of your current theme (or subfolder of your choice).
copy-icon
copy-icon

Comments

Authors

Read Next