Modify theme functions for GEO

This commit is contained in:
benjamin melançon 2019-07-28 12:33:02 -04:00
parent a17440a2d9
commit c612c8ae7d

View file

@ -5,7 +5,7 @@
*
* Provide the elements of the branding block in the page.
*/
function family_home_preprocess_page(&$variables) {
function geofresco_preprocess_page(&$variables) {
$block_manager = \Drupal::service('plugin.manager.block');
$branding = $block_manager->createInstance('system_branding_block', [])->build();
$variables['site_logo'] = $branding['site_logo']['#uri'];
@ -24,7 +24,7 @@ function family_home_preprocess_page(&$variables) {
* In order to do an incredibly ugly hack to prevent responsive images from
* upscaling themselves.
*/
function family_home_preprocess_responsive_image_formatter(array &$variables) {
function geofresco_preprocess_responsive_image_formatter(array &$variables) {
$width = $variables['item']->width;
if ($width > 1199) {
return;