diff --git a/core/modules/config/tests/config_test/lib/Drupal/config_test/ConfigTestController.php b/core/modules/config/tests/config_test/lib/Drupal/config_test/ConfigTestController.php index 6a40ee9..b7b6458 100644 --- a/core/modules/config/tests/config_test/lib/Drupal/config_test/ConfigTestController.php +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/ConfigTestController.php @@ -7,10 +7,10 @@ namespace Drupal\config_test; -use Symfony\Component\DependencyInjection\ContainerInterface; -use Symfony\Component\HttpFoundation\RedirectResponse; use Drupal\config_test\Plugin\Core\Entity\ConfigTest; use Drupal\Component\Utility\String; +use Symfony\Component\DependencyInjection\ContainerInterface; +use Symfony\Component\HttpFoundation\RedirectResponse; /** * Route controller class for the config_test module. diff --git a/core/modules/config/tests/config_test/lib/Drupal/config_test/Form/DeleteForm.php b/core/modules/config/tests/config_test/lib/Drupal/config_test/Form/DeleteForm.php index 2b24728..b21faa5 100644 --- a/core/modules/config/tests/config_test/lib/Drupal/config_test/Form/DeleteForm.php +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/Form/DeleteForm.php @@ -7,6 +7,7 @@ namespace Drupal\config_test\Form; use Drupal\Core\Form\ConfirmFormBase; +use Drupal\Component\Utility\String; use Drupal\config_test\Plugin\Core\Entity\ConfigTest; /** @@ -51,7 +52,10 @@ public function getFormID() { } /** - * {@inheritdoc} + * Implements \Drupal\Drupal\Core\Form\ConfirmFormBase::buildForm(). + * + * @param \Drupal\config_test\Plugin\Core\Entity\ConfigTest $config_test + * The loaded config_test configuration entity. */ public function buildForm(array $form, array &$form_state, ConfigTest $config_test = NULL) { $this->configTest = $config_test; @@ -64,7 +68,7 @@ public function buildForm(array $form, array &$form_state, ConfigTest $config_te */ public function submitForm(array &$form, array &$form_state) { $this->configTest->delete(); - drupal_set_message(format_string('%label configuration has been deleted.', array('%label' => $this->configTest->label()))); + drupal_set_message(String::format('%label configuration has been deleted.', array('%label' => $this->configTest->label()))); $form_state['redirect'] = 'admin/structure/config_test'; }