protected static function Dimension::_defaultSettings in Dimension 8
Same name and namespace in other branches
- 2.1.x src/Plugin/Field/FieldWidget/Dimension.php \Drupal\dimension\Plugin\Field\FieldWidget\Dimension::_defaultSettings()
- 2.0.x src/Plugin/Field/FieldWidget/Dimension.php \Drupal\dimension\Plugin\Field\FieldWidget\Dimension::_defaultSettings()
3 calls to Dimension::_defaultSettings()
- Area::defaultSettings in src/
Plugin/ Field/ FieldWidget/ Area.php - Defines the default settings for this plugin.
- Length::defaultSettings in src/
Plugin/ Field/ FieldWidget/ Length.php - Defines the default settings for this plugin.
- Volume::defaultSettings in src/
Plugin/ Field/ FieldWidget/ Volume.php - Defines the default settings for this plugin.
File
- src/
Plugin/ Field/ FieldWidget/ Dimension.php, line 16
Class
Namespace
Drupal\dimension\Plugin\Field\FieldWidgetCode
protected static function _defaultSettings($fields) {
$settings = array();
foreach ($fields as $key => $label) {
$settings[$key] = array(
'placeholder' => '',
'label' => $label,
'description' => '',
);
}
return $settings;
}