- Issue created by @yannickoo
When choosing the source of the Paragraph behavior value we can only see keys from defaultConfiguration
method because of this code inside settingsForm
:
foreach (array_keys($plugin->defaultConfiguration()) as $key) {
$options[$plugin_label][$plugin_id . ':' . $key] = $key;
}
The problem with that is that behavior plugins are not specifying the key to store the data in.
Take the offical TestTextColorBehavior.php as example:
The key that was set in defaultConfiguration
is called default_color
whereas the actual key holding the value is called text_color
.
Do you think it is the easiest way to provide a text field that allows the site administrator to specify the name of the key instead of having the select list?
Active
1.0
Code