Loading src/Form/ToastrSettingsForm.php +4 −6 Changes for src/Form/ToastrSettingsForm.php: 4 added lines, 6 removed lines. Original line number Diff line number Diff line <?php namespace Drupal\toastr\Form; use Drupal\Core\Form\ConfigFormBase; use Drupal\Core\Form\FormStateInterface; /** * Class ToastrSettingsForm * Custom setting form. * * @package Drupal\toastr\Form */ Loading @@ -18,6 +16,7 @@ class ToastrSettingsForm extends ConfigFormBase { * Default settings. * * @return array * An array containing default values. */ public static function defaultSettings() { return [ Loading @@ -35,7 +34,7 @@ class ToastrSettingsForm extends ConfigFormBase { 'toastr_extended_timeout' => 10000, 'toastr_show_duration' => 300, 'toastr_hide_duration' => 1000, 'toastr_leave_errors' => 1 'toastr_leave_errors' => 1, ]; } Loading Loading @@ -67,9 +66,8 @@ class ToastrSettingsForm extends ConfigFormBase { /** * Gets the value for the config key. * * Fallbacks to default value if no config exists. * * @return array|mixed|null * Fallbacks to default value if no config exists. */ private function getConfigValue($key) { /** @var \Drupal\Core\Config\ImmutableConfig $config */ Loading js/messages.js +2 −2 File changed.Contains only whitespace changes. Show changes Loading
src/Form/ToastrSettingsForm.php +4 −6 Changes for src/Form/ToastrSettingsForm.php: 4 added lines, 6 removed lines. Original line number Diff line number Diff line <?php namespace Drupal\toastr\Form; use Drupal\Core\Form\ConfigFormBase; use Drupal\Core\Form\FormStateInterface; /** * Class ToastrSettingsForm * Custom setting form. * * @package Drupal\toastr\Form */ Loading @@ -18,6 +16,7 @@ class ToastrSettingsForm extends ConfigFormBase { * Default settings. * * @return array * An array containing default values. */ public static function defaultSettings() { return [ Loading @@ -35,7 +34,7 @@ class ToastrSettingsForm extends ConfigFormBase { 'toastr_extended_timeout' => 10000, 'toastr_show_duration' => 300, 'toastr_hide_duration' => 1000, 'toastr_leave_errors' => 1 'toastr_leave_errors' => 1, ]; } Loading Loading @@ -67,9 +66,8 @@ class ToastrSettingsForm extends ConfigFormBase { /** * Gets the value for the config key. * * Fallbacks to default value if no config exists. * * @return array|mixed|null * Fallbacks to default value if no config exists. */ private function getConfigValue($key) { /** @var \Drupal\Core\Config\ImmutableConfig $config */ Loading