function Section::getThirdPartySetting

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::getThirdPartySetting()
  2. 8.9.x core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::getThirdPartySetting()
  3. 11.x core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::getThirdPartySetting()

Gets the value of a third-party setting.

Parameters

string $module: The module providing the third-party setting.

string $key: The setting name.

mixed $default: The default value

Return value

mixed The value.

Overrides ThirdPartySettingsInterface::getThirdPartySetting

File

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

Class

Section
Provides a domain object for layout sections.

Namespace

Drupal\layout_builder

Code

public function getThirdPartySetting($provider, $key, $default = NULL) {
    return $this->thirdPartySettings[$provider][$key] ?? $default;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.