diff --git a/core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php b/core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php index ac97b9f..73fe812 100644 --- a/core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php +++ b/core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php @@ -45,7 +45,7 @@ class FormAjaxSubscriber implements EventSubscriberInterface { * @param \Drupal\Core\Form\FormAjaxResponseBuilderInterface $form_ajax_response_builder * The form AJAX response builder. * @param \Drupal\Core\Render\RendererInterface $renderer - * The renderering service. + * The renderer service. */ public function __construct(FormAjaxResponseBuilderInterface $form_ajax_response_builder, RendererInterface $renderer) { $this->formAjaxResponseBuilder = $form_ajax_response_builder; @@ -81,7 +81,7 @@ public function onException(GetResponseForExceptionEvent $event) { $exception = $event->getException(); $request = $event->getRequest(); - // Render a nice error message in case you have a file upload which exceeds + // Render a nice error message in case we have a file upload which exceeds // the configured upload limit. if ($exception instanceof BadRequestHttpException && $request->query->has(FormBuilderInterface::AJAX_FORM_REQUEST)) { $this->drupalSetMessage($exception->getMessage(), 'error'); diff --git a/core/modules/file/src/Element/ManagedFile.php b/core/modules/file/src/Element/ManagedFile.php index 8012835..cb1f626 100644 --- a/core/modules/file/src/Element/ManagedFile.php +++ b/core/modules/file/src/Element/ManagedFile.php @@ -133,8 +133,8 @@ public static function valueCallback(&$element, $input, FormStateInterface $form * * This ajax callback takes care of the following things: * - Ensures that broken requests due to too big files are caught. - * - Adds a class to the response to be able to highlight in the UI, that - * a new file got uploaded. + * - Adds a class to the response to be able to highlight in the UI, that a + * new file got uploaded. * * @param array $form * The build form. diff --git a/core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php b/core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php index c4636ac..f184870 100644 --- a/core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php +++ b/core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php @@ -448,7 +448,7 @@ public static function processMultiple($element, FormStateInterface $form_state, $element_children = Element::children($element, TRUE); $count = count($element_children); - // Count the amount of already uploaded files, in order to display new + // Count the number of already uploaded files, in order to display new // items in \Drupal\file\Element\ManagedFile::uploadAjaxCallback(). if (!$form_state->isRebuilding()) { $count_items_before = 0;