You are here

public function PluginSettingsBase::getThirdPartySettings in Drupal 8

Same name and namespace in other branches
  1. 9 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

1 call to PluginSettingsBase::getThirdPartySettings()
FormatterBase::view in core/lib/Drupal/Core/Field/FormatterBase.php
Builds a renderable array for a fully themed field.

File

core/lib/Drupal/Core/Field/PluginSettingsBase.php, line 95

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] : [];
  }
  return $this->thirdPartySettings;
}