core/includes/ajax.inc | 4 ++-- core/lib/Drupal/Core/Controller/AjaxController.php | 16 +++++----------- .../lib/Drupal/Core/EventSubscriber/ViewSubscriber.php | 2 +- .../system/tests/modules/ajax_test/ajax_test.module | 2 +- 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/core/includes/ajax.inc b/core/includes/ajax.inc index b2f175a..f7782b0 100644 --- a/core/includes/ajax.inc +++ b/core/includes/ajax.inc @@ -78,7 +78,7 @@ * 'wrapper' => 'replace_textfield_div', * ), * ); - + * * // This entire form element will be replaced with an updated value. * $form['replace_textfield'] = array( * '#type' => 'textfield', @@ -185,7 +185,7 @@ * '/ajax/' so that the submit handler can tell if the form was submitted * in a degraded state or not. * - * As developer you basically create a \Drupal\Core\Ajax\AjaxResponse and add + * As a developer you basically create a \Drupal\Core\Ajax\AjaxResponse and add * a couple of \Drupal\Core\Ajax\CommandInterface onto it, which will be * converted to a commands array automatically. This commands array will be * converted to a JSON object and returned to the client, which will then diff --git a/core/lib/Drupal/Core/Controller/AjaxController.php b/core/lib/Drupal/Core/Controller/AjaxController.php index f0c480e..8d17397 100644 --- a/core/lib/Drupal/Core/Controller/AjaxController.php +++ b/core/lib/Drupal/Core/Controller/AjaxController.php @@ -7,18 +7,12 @@ namespace Drupal\Core\Controller; -use Drupal\Core\Ajax\AjaxResponse; use Drupal\Core\Ajax\AjaxResponseRenderer; -use Drupal\Core\Ajax\InsertCommand; -use Drupal\Core\Ajax\PrependCommand; -use Drupal\Core\Page\HtmlFragment; -use Drupal\Core\Page\HtmlPage; use Symfony\Component\DependencyInjection\ContainerAware; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\Response; /** - * Default controller for ajax requests. + * Default controller for Ajax requests. */ class AjaxController extends ContainerAware { @@ -30,7 +24,7 @@ class AjaxController extends ContainerAware { protected $controllerResolver; /** - * The ajax response renderer. + * The Ajax response renderer. * * @var \Drupal\Core\Ajax\AjaxResponseRenderer */ @@ -42,7 +36,7 @@ class AjaxController extends ContainerAware { * @param \Drupal\Core\Controller\ControllerResolverInterface $controller_resolver * The controller resolver. * @param \Drupal\Core\Ajax\AjaxResponseRenderer $ajax_renderer - * The ajax response renderer. + * The Ajax response renderer. */ public function __construct(ControllerResolverInterface $controller_resolver, AjaxResponseRenderer $ajax_renderer) { $this->controllerResolver = $controller_resolver; @@ -50,12 +44,12 @@ public function __construct(ControllerResolverInterface $controller_resolver, Aj } /** - * Controller method for AJAX content. + * Controller method for Ajax content. * * @param \Symfony\Component\HttpFoundation\Request $request * The request object. * @param callable $_content - * The callable that returns the content of the ajax response. + * The callable that returns the content of the Ajax response. * * @return \Drupal\Core\Ajax\AjaxResponse * A response object. diff --git a/core/lib/Drupal/Core/EventSubscriber/ViewSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/ViewSubscriber.php index dc9ef35..bcc80a4 100644 --- a/core/lib/Drupal/Core/EventSubscriber/ViewSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/ViewSubscriber.php @@ -44,7 +44,7 @@ class ViewSubscriber implements EventSubscriberInterface { protected $titleResolver; /** - * The ajax response renderer. + * The Ajax response renderer. * * @var \Drupal\Core\Ajax\AjaxResponseRenderer */ diff --git a/core/modules/system/tests/modules/ajax_test/ajax_test.module b/core/modules/system/tests/modules/ajax_test/ajax_test.module index c9e7918..18a002a 100644 --- a/core/modules/system/tests/modules/ajax_test/ajax_test.module +++ b/core/modules/system/tests/modules/ajax_test/ajax_test.module @@ -26,7 +26,7 @@ function ajax_test_system_theme_info() { * * Additionally ensures that \Drupal\Core\Ajax\AjaxResponse::ajaxRender() * incorporates JavaScript settings generated during the page request by - * invoking drupal_add_js() with a dummy setting. + * invoking _drupal_add_js() with a dummy setting. * * @deprecated \Drupal\ajax_test\Controller\AjaxTestController::render() */