public static function CshsOptionsFromHelper::defaultSettings in Client-side Hierarchical Select 8
Same name and namespace in other branches
- 8.3 src/CshsOptionsFromHelper.php \Drupal\cshs\CshsOptionsFromHelper::defaultSettings()
- 8.2 src/CshsOptionsFromHelper.php \Drupal\cshs\CshsOptionsFromHelper::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
2 calls to CshsOptionsFromHelper::defaultSettings()
- CshsTaxonomyIndex::defineOptions in src/
Plugin/ views/ filter/ CshsTaxonomyIndex.php - CshsWidget::defaultSettings in src/
Plugin/ Field/ FieldWidget/ CshsWidget.php - Defines the default settings for this plugin.
File
- src/
CshsOptionsFromHelper.php, line 48
Class
- CshsOptionsFromHelper
- Defines a class for getting options for a cshs form element from vocabulary.
Namespace
Drupal\cshsCode
public static function defaultSettings() : array {
return [
'parent' => 0,
'level_labels' => '',
'force_deepest' => FALSE,
'save_lineage' => FALSE,
'hierarchy_depth' => 0,
'required_depth' => 0,
];
}