public function Conditions::conditionalFieldsDependencyDefaultSettings in Conditional Fields 8
Same name and namespace in other branches
- 4.x src/Conditions.php \Drupal\conditional_fields\Conditions::conditionalFieldsDependencyDefaultSettings()
Provides default options for a dependency.
File
- src/
Conditions.php, line 35
Class
- Conditions
- Provide conditional field's lists.
Namespace
Drupal\conditional_fieldsCode
public function conditionalFieldsDependencyDefaultSettings() {
return [
'state' => 'visible',
'condition' => 'value',
'grouping' => 'AND',
'values_set' => ConditionalFieldsInterface::CONDITIONAL_FIELDS_DEPENDENCY_VALUES_WIDGET,
// !Important.
// The param default value MUST match to schema declaration.
// @see conditional_fields.schema.yml
'value' => '',
'values' => [],
'value_form' => [],
'effect' => 'show',
'effect_options' => [],
'selector' => '',
];
}