You are here

public function PluginSettingsBase::getThirdPartySettings in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/PluginSettingsBase.php \Drupal\Core\Field\PluginSettingsBase::getThirdPartySettings()

Gets all third-party settings of a given module.

Parameters

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

Return value

array An array of key-value pairs.

Overrides ThirdPartySettingsInterface::getThirdPartySettings

File

core/lib/Drupal/Core/Field/PluginSettingsBase.php, line 100
Contains \Drupal\Core\Field\PluginSettingsBase.

Class

PluginSettingsBase
Base class for the Field API plugins.

Namespace

Drupal\Core\Field

Code

public function getThirdPartySettings($module = NULL) {
  if ($module) {
    return isset($this->thirdPartySettings[$module]) ? $this->thirdPartySettings[$module] : NULL;
  }
  return $this->thirdPartySettings;
}