Problem/Motivation

theme_get_setting() is deprecated in Drupal 11.3. Instead, the new Drupal\Core\Extension\ThemeSettingsProvider service should be used.

This means that the following code needs to be changed.

  $form['seven_settings']['enable_block_contextual_links'] = [
    '#type' => 'checkbox',
    '#title' => t('Enable contextual links for blocks'),
    '#default_value' => theme_get_setting('enable_block_contextual_links'),
  ];

Proposed resolution

Change the code which calls theme_get_setting(). For code that works either before or after Drupal 11.3, see DeprecationHelper helps modules support multiple versions of core.

Issue fork seven-3554435

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

avpaderno created an issue. See original summary.

avpaderno’s picture

Status: Active » Needs review

  • avpaderno committed 88d96a6f on 2.0.x
    Issue #3554435: theme_get_setting() has been deprecated in Drupal 11.3
    
avpaderno’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.