check = $check; $this->config = $config; } /** * {@inheritdoc} */ public function get($key, $default_value = NULL) { $value = $this->config->get('settings.' . $key); if ($value == NULL) { return $default_value; } return $value; } /** * {@inheritdoc} */ public function set($key, $value) { $this->config->set('settings.' . $key, $value); $this->config->save(); return $this; } /** * {@inheritdoc} */ public function buildForm() { return []; } /** * {@inheritdoc} */ public function validateForm(array &$form, array $values) { // Validation is optional. } /** * {@inheritdoc} */ public function submitForm(array &$form, array $values) { // Handle submission. } }