Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConfigEntityBase.php

function ConfigEntityBase::unsetThirdPartySetting

Overrides ThirdPartySettingsInterface::unsetThirdPartySetting

1 call to ConfigEntityBase::unsetThirdPartySetting()
LayoutBuilderEntityViewDisplay::setSections in core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
Stores the information for all sections.

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 540

Class

ConfigEntityBase
Defines a base configuration entity class.

Namespace

Drupal\Core\Config\Entity

Code

public function unsetThirdPartySetting($module, $key) {
    unset($this->third_party_settings[$module][$key]);
    // If the third party is no longer storing any information, completely
    // remove the array holding the settings for this module.
    if (empty($this->third_party_settings[$module])) {
        unset($this->third_party_settings[$module]);
    }
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal