function PluginSettingsInterface::getSetting
Same name in other branches
- 9 core/lib/Drupal/Core/Field/PluginSettingsInterface.php \Drupal\Core\Field\PluginSettingsInterface::getSetting()
- 8.9.x core/lib/Drupal/Core/Field/PluginSettingsInterface.php \Drupal\Core\Field\PluginSettingsInterface::getSetting()
- 10 core/lib/Drupal/Core/Field/PluginSettingsInterface.php \Drupal\Core\Field\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
File
-
core/
lib/ Drupal/ Core/ Field/ PluginSettingsInterface.php, line 41
Class
- PluginSettingsInterface
- Interface definition for plugin with settings.
Namespace
Drupal\Core\FieldCode
public function getSetting($key);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.