public function SettingBase::getElementProperties in Express 8
Retrieves all the form properties from the setting definition.
Return value
array The form properties.
1 call to SettingBase::getElementProperties()
- SettingBase::getSettingElement in themes/
contrib/ bootstrap/ src/ Plugin/ Setting/ SettingBase.php - Retrieves the form element for the setting.
File
- themes/
contrib/ bootstrap/ src/ Plugin/ Setting/ SettingBase.php, line 56 - Contains \Drupal\bootstrap\Plugin\Setting\SettingBase.
Class
- SettingBase
- Base class for a setting.
Namespace
Drupal\bootstrap\Plugin\SettingCode
public function getElementProperties() {
$properties = $this
->getPluginDefinition();
foreach ($properties as $name => $value) {
if (in_array($name, [
'class',
'defaultValue',
'definition',
'groups',
'id',
'provider',
'see',
])) {
unset($properties[$name]);
}
}
return $properties;
}