W3cubDocs

/Drupal 8

public function ConfigEntityBase::getThirdPartySetting

public ConfigEntityBase::getThirdPartySetting($module, $key, $default = NULL)

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/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 541

Class

ConfigEntityBase
Defines a base configuration entity class.

Namespace

Drupal\Core\Config\Entity

Code

public function getThirdPartySetting($module, $key, $default = NULL) {
  if (isset($this->third_party_settings[$module][$key])) {
    return $this->third_party_settings[$module][$key];
  }
  else {
    return $default;
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Entity!ConfigEntityBase.php/function/ConfigEntityBase::getThirdPartySetting/8.1.x