Commit 705a8163 authored by git's avatar git Committed by frjo

Issue #2421907 by j4: Install Fatal Error D8 beta 6

parent e670c9df
......@@ -23,12 +23,19 @@ class ColorboxSettingsForm extends ConfigFormBase {
return 'colorbox_admin_settings_form';
}
/**
* {@inheritdoc}
*/
protected function getEditableConfigNames() {
return ['colorbox.settings',];
}
/**
* {@inheritdoc}
*/
public function buildForm(array $form, FormStateInterface $form_state) {
// Get all settings
$config = $this->config('colorbox.settings');
$config = $this->configFactory->get('colorbox.settings');
$form['#attached']['library'][] = 'colorbox/settings';
......@@ -302,7 +309,7 @@ class ColorboxSettingsForm extends ConfigFormBase {
public function submitForm(array &$form, FormStateInterface $form_state) {
// Get config factory
$config = $this->configFactory->get('colorbox.settings');
$config = $this->configFactory->getEditable('colorbox.settings');
$config
->set('custom.style', $form_state->getValue('colorbox_style'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment