5 * Contains \Drupal\security_review\CheckSettingsInterface.
8 namespace Drupal\security_review;
11 * Interface for check-specific settings and forms for altering them.
13 interface CheckSettingsInterface {
16 * Gets a check-specific setting value identified by $key.
20 * @param mixed $default_value
21 * Default value to return in case $key does not exist.
24 * The value of the stored setting.
26 public function get($key, $default_value);
29 * Sets a check-specific setting value identified by $key.
36 * @return CheckSettingsInterface
39 public function set($key, $value);
47 public function buildForm();
50 * Form validation handler.
53 * An associative array containing the structure of the form.
54 * @param array $values
55 * The current values of the form.
57 public function validateForm(array &$form, array $values);
60 * Form submission handler.
63 * An associative array containing the structure of the form.
64 * @param array $values
65 * The current values of the form.
67 public function submitForm(array &$form, array $values);