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

Breadcrumb

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

function Section::unsetThirdPartySetting

Overrides ThirdPartySettingsInterface::unsetThirdPartySetting

File

core/modules/layout_builder/src/Section.php, line 427

Class

Section
Provides a domain object for layout sections.

Namespace

Drupal\layout_builder

Code

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