Skip to content
Snippets Groups Projects

Issue #3373396: Field and Variant conditions

6 files
+ 119
3
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -53,6 +53,7 @@ class PatternDefinitionSetting implements \ArrayAccess {
$this->definition['name'] = $name_key;
$this->definition['group'] = $value['group'] ?? NULL;
$this->definition['weight'] = $value['weight'] ?? NULL;
$this->definition['states'] = $value['states'] ?? [];
$this->definition['type'] = $value['type'] ?? 'textfield';
$this->definition['label'] = $value['label'] ?? $name_key;
$this->definition['required'] = $value['required'] ?? FALSE;
@@ -350,6 +351,29 @@ class PatternDefinitionSetting implements \ArrayAccess {
return $this;
}
/**
* Get states property.
*
* @return string
* Property value.
*/
public function getStates() {
return $this->definition['states'];
}
/**
* Set States property.
*
* @param string $type
* Property value.
*
* @return $this
*/
public function setStates($states) {
$this->definition['states'] = $states;
return $this;
}
/**
* Get Type property.
*
Loading