Update Module Page with new Service Caller

Created on 26 January 2024, 5 months ago
Updated 9 February 2024, 5 months ago

Someone should really update the Drupal module page. I spend quite some time to find out the the old service caller is deprecated;

<?php
$site_settings = \Drupal::service('site_settings.loader');
?>

New seems to be:

$site_settings = \Drupal::service('plugin.manager.site_settings_loader')->getActiveLoaderPlugin();

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Documentation

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024