removeFilterConfig(); } return $reasons; } /** * Deletes configuration. */ protected function removeFilterConfig() { $php_filter = \Drupal::configFactory()->getEditable('filter.format.php_code'); $php_filter->delete(); // Clear cache. drupal_flush_all_caches(); } }