diff --git a/schema/state_log.schema.yml b/schema/state_log.schema.yml
index 5d180d7..ccfa396 100644
--- a/schema/state_log.schema.yml
+++ b/schema/state_log.schema.yml
@@ -7,4 +7,3 @@ state_log.settings:
label: 'List of ignored state names'
sequence:
type: string
-
\ No newline at end of file
diff --git a/src/Form/StateLogConfigForm.php b/src/Form/StateLogConfigForm.php
index c72fc0c..7f7d21b 100644
--- a/src/Form/StateLogConfigForm.php
+++ b/src/Form/StateLogConfigForm.php
@@ -31,13 +31,14 @@ public function buildForm(array $form, FormStateInterface $form_state) {
$state_log_conf = $this->configFactory->get('state_log.settings');
$description = $this->t('One state name per line.
- Examples:
- - system.theme.files
- - drupal_css_cache_files
- - system.maintenance_mode
-
+ Examples:
+ - system.theme.files
+ - drupal_css_cache_files
+ - system.maintenance_mode
+
- More documentation on the State API can be found here: https://www.drupal.org/docs/8/api/state-api/overview');
+ More documentation on the State API can be found here: https://www.drupal.org/docs/8/api/state-api/overview
+ ');
$form['options']['log_ignored_state'] = [
'#type' => 'textarea',
@@ -49,10 +50,8 @@ public function buildForm(array $form, FormStateInterface $form_state) {
];
return parent::buildForm($form, $form_state);
-
}
-
/**
* {@inheritdoc}
*/
@@ -61,8 +60,8 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
$ignore_settings_array = array_filter($ignore_settings_array);
$this->config('state_log.settings')
- ->set('log_ignored_state', $ignore_settings_array)
- ->save();
+ ->set('log_ignored_state', $ignore_settings_array)
+ ->save();
parent::submitForm($form, $form_state);
}
diff --git a/src/StateLog.php b/src/StateLog.php
index 490a916..96dbc2e 100644
--- a/src/StateLog.php
+++ b/src/StateLog.php
@@ -98,12 +98,12 @@ public function resetCache() {
* Returns whether the state_name is ignored.
*
* @param string $state_name
- * The state name key
+ * The state name key.
*
* @return bool
- * TRUE if the state key is ignored, FALSE otherwise
+ * TRUE if the state key is ignored, FALSE otherwise.
*/
- public function isKeyIgnored($state_name) {
+ private function isKeyIgnored($state_name) {
$ignored_entities = \Drupal::config('state_log.settings')->get('log_ignored_state') ?: [];
foreach ($ignored_entities as $ignore) {
if ($ignore == $state_name) {