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_builderCode
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;
}