public function LayoutParagraphsLayout::unsetThirdPartySetting in Layout Paragraphs 2.0.x
Unsets a third-party setting.
Parameters
string $module: The module providing the third-party setting.
string $key: The setting name.
Return value
mixed The value.
Overrides ThirdPartySettingsInterface::unsetThirdPartySetting
File
- src/
LayoutParagraphsLayout.php, line 526
Class
- LayoutParagraphsLayout
- Provides a domain object for a complete Layout Paragraphs Layout.
Namespace
Drupal\layout_paragraphsCode
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;
}