3 namespace Drupal\security_review;
6 * Interface for check-specific settings and forms for altering them.
8 interface CheckSettingsInterface {
11 * Gets a check-specific setting value identified by $key.
15 * @param mixed $default_value
16 * Default value to return in case $key does not exist.
19 * The value of the stored setting.
21 public function get($key, $default_value);
24 * Sets a check-specific setting value identified by $key.
31 * @return CheckSettingsInterface
34 public function set($key, $value);
42 public function buildForm();
45 * Form validation handler.
48 * An associative array containing the structure of the form.
49 * @param array $values
50 * The current values of the form.
52 public function validateForm(array &$form, array $values);
55 * Form submission handler.
58 * An associative array containing the structure of the form.
59 * @param array $values
60 * The current values of the form.
62 public function submitForm(array &$form, array $values);