Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PluginSettingsInterface.php

function PluginSettingsInterface::getSetting

Returns the value of a setting, or its default value if absent.

Parameters

string $key: The setting name.

Return value

mixed The setting value.

1 method overrides PluginSettingsInterface::getSetting()
PluginSettingsBase::getSetting in core/lib/Drupal/Core/Field/PluginSettingsBase.php
Returns the value of a setting, or its default value if absent.

File

core/lib/Drupal/Core/Field/PluginSettingsInterface.php, line 41

Class

PluginSettingsInterface
Interface definition for plugin with settings.

Namespace

Drupal\Core\Field

Code

public function getSetting($key);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal