Returns the value of a setting, or its default value if absent.
Parameters
string $key:
The setting name.
Return value
mixed
The setting value.
File
- drupal/core/modules/field/lib/Drupal/field/Plugin/PluginSettingsInterface.php, line 34
- Definition of Drupal\field\Plugin\PluginSettingsInterface.
Class
- PluginSettingsInterface
- Interface definition for plugin with settings.
Namespace
Drupal\field\Plugin
Code
public function getSetting($key);