@@ -28,6 +28,7 @@ class PatternDefinitionSetting implements \ArrayAccess {
2828 'forced_value ' => NULL ,
2929 'options ' => NULL ,
3030 'form_visible ' => TRUE ,
31+ 'allow_binding ' => FALSE ,
3132 ];
3233
3334 /**
@@ -39,6 +40,7 @@ public function __construct($name, $value) {
3940 $ this ->definition ['label ' ] = $ value ;
4041 $ this ->definition ['type ' ] = 'textfield ' ;
4142 $ this ->definition ['preview ' ] = NULL ;
43+ $ this ->definition ['allow_binding ' ] = FALSE ;
4244 }
4345 else {
4446 $ this ->definition ['name ' ] = !isset ($ value ['name ' ]) ? $ name : $ value ['name ' ];
@@ -47,6 +49,7 @@ public function __construct($name, $value) {
4749 $ this ->definition ['default_value ' ] = isset ($ value ['default_value ' ]) ? $ value ['default_value ' ] : NULL ;
4850 $ this ->definition ['preview ' ] = isset ($ value ['preview ' ]) ? $ value ['preview ' ] : NULL ;
4951 $ this ->definition ['options ' ] = isset ($ value ['options ' ]) ? $ value ['options ' ] : NULL ;
52+ $ this ->definition ['allow_binding ' ] = isset ($ value ['allow_binding ' ]) ? $ value ['allow_binding ' ] : FALSE ;
5053 $ this ->definition = $ value + $ this ->definition ;
5154 }
5255 }
@@ -91,6 +94,16 @@ public function getRequired() {
9194 return $ this ->definition ['required ' ];
9295 }
9396
97+ /**
98+ * Get allow binding property.
99+ *
100+ * @return bool
101+ * Property value.
102+ */
103+ public function getAllowBinding () {
104+ return $ this ->definition ['allow_binding ' ];
105+ }
106+
94107 /**
95108 * Get options array.
96109 *
@@ -122,6 +135,19 @@ public function setDefaultValue($defaultValue) {
122135 return $ this ;
123136 }
124137
138+ /**
139+ * Set allow binding value property.
140+ *
141+ * @param bool $allow_binding
142+ * Property value.
143+ *
144+ * @return $this
145+ */
146+ public function setAllowBinding ($ allow_binding ) {
147+ $ this ->definition ['allow_binding ' ] = $ allow_binding ;
148+ return $ this ;
149+ }
150+
125151 /**
126152 * Get default value property.
127153 *
0 commit comments