Skip to content
Snippets Groups Projects
Commit 02ff3516 authored by Tyler Stryuk's avatar Tyler Stryuk Committed by Igor Biki
Browse files

ISTWCMS-6047: Doing min amount for D10

parent ade175ff
No related branches found
No related tags found
1 merge request!97ISTWCMS-6047: Doing min amount for D10
...@@ -2,7 +2,7 @@ name: UW FDSU responsive theme ...@@ -2,7 +2,7 @@ name: UW FDSU responsive theme
type: theme type: theme
description: Theme based on <a href="https://github.com/chazchumley/ohana">Ohana</a>. description: Theme based on <a href="https://github.com/chazchumley/ohana">Ohana</a>.
base theme: seven base theme: seven
core_version_requirement: ^8 || ^9 core_version_requirement: ^8 || ^9 || ^10
dependencies: dependencies:
- content_moderation:content_moderation - content_moderation:content_moderation
- uw_wcms_ohana:uw_wcms_ohana - uw_wcms_ohana:uw_wcms_ohana
......
...@@ -304,7 +304,7 @@ function _uw_fdsu_theme_resp_add_favicons(array &$variables) { ...@@ -304,7 +304,7 @@ function _uw_fdsu_theme_resp_add_favicons(array &$variables) {
// Specify new favicon locations. // Specify new favicon locations.
// Based on https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs. // Based on https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs.
$favicon_base_path = base_path() . drupal_get_path('theme', 'uw_fdsu_theme_resp'); $favicon_base_path = base_path() . \Drupal::service('extension.list.theme')->getPath('uw_fdsu_theme_resp');
$favicon = [ $favicon = [
'rel' => 'icon', 'rel' => 'icon',
'href' => $favicon_base_path . '/favicon.ico', 'href' => $favicon_base_path . '/favicon.ico',
...@@ -432,7 +432,7 @@ function _uw_fdsu_theme_resp_get_image_info(FileFieldItemList $field) { ...@@ -432,7 +432,7 @@ function _uw_fdsu_theme_resp_get_image_info(FileFieldItemList $field) {
if ($file_entity = $img_entity->get('entity')->getTarget()) { if ($file_entity = $img_entity->get('entity')->getTarget()) {
return [ return [
'src' => file_create_url($file_entity->get('uri')->getString()), 'src' => \Drupal::service('file_url_generator')->generateAbsoluteString($file_entity->get('uri')->getString()),
'alt' => $img_entity->get('alt')->getString(), 'alt' => $img_entity->get('alt')->getString(),
]; ];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment