comparison core/core.api.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents c2387f117808
children af1871eacc83
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
1193 * PHPUnit tests for Drupal. 1193 * PHPUnit tests for Drupal.
1194 * 1194 *
1195 * @section running Running tests 1195 * @section running Running tests
1196 * You can run both Simpletest and PHPUnit tests by enabling the core Testing 1196 * You can run both Simpletest and PHPUnit tests by enabling the core Testing
1197 * module (core/modules/simpletest). Once that module is enabled, tests can be 1197 * module (core/modules/simpletest). Once that module is enabled, tests can be
1198 * run using the core/scripts/run-tests.sh script, using 1198 * run on through the Testing module's user interface or on the command line.
1199 * @link https://www.drupal.org/project/drush Drush @endlink, or from the 1199 *
1200 * Testing module user interface. 1200 * See @link https://www.drupal.org/node/2116263 Running tests with PHPUnit
1201 * 1201 * binary @endlink or @link https://www.drupal.org/node/645286 Running tests
1202 * PHPUnit tests can also be run from the command line, using the PHPUnit 1202 * with run-tests.sh @endlink for more information.
1203 * framework. See https://www.drupal.org/node/2116263 for more information.
1204 * @} 1203 * @}
1205 */ 1204 */
1206 1205
1207 /** 1206 /**
1208 * @defgroup php_assert PHP Runtime Assert Statements 1207 * @defgroup php_assert PHP Runtime Assert Statements
2019 } 2018 }
2020 2019
2021 /** 2020 /**
2022 * Alter an email message created with MailManagerInterface->mail(). 2021 * Alter an email message created with MailManagerInterface->mail().
2023 * 2022 *
2024 * hook_mail_alter() allows modification of email messages created and sent 2023 * Hook hook_mail_alter() allows modification of email messages created and sent
2025 * with MailManagerInterface->mail(). Usage examples include adding and/or 2024 * with MailManagerInterface->mail(). Usage examples include adding and/or
2026 * changing message text, message fields, and message headers. 2025 * changing message text, message fields, and message headers.
2027 * 2026 *
2028 * Email messages sent using functions other than MailManagerInterface->mail() 2027 * Email messages sent using functions other than MailManagerInterface->mail()
2029 * will not invoke hook_mail_alter(). For example, a contributed module directly 2028 * will not invoke hook_mail_alter(). For example, a contributed module directly
2424 * 2423 *
2425 * Once you have processed the input, you have your choice of returning HTML 2424 * Once you have processed the input, you have your choice of returning HTML
2426 * markup or a set of Ajax commands. If you choose to return HTML markup, you 2425 * markup or a set of Ajax commands. If you choose to return HTML markup, you
2427 * can return it as a string or a renderable array, and it will be placed in 2426 * can return it as a string or a renderable array, and it will be placed in
2428 * the defined 'wrapper' element (see documentation above in @ref sub_form). 2427 * the defined 'wrapper' element (see documentation above in @ref sub_form).
2429 * In addition, any messages returned by drupal_get_messages(), themed as in 2428 * In addition, any messages returned by
2429 * \Drupal\Core\Messenger\Messenger::all(), themed as in
2430 * status-messages.html.twig, will be prepended. 2430 * status-messages.html.twig, will be prepended.
2431 * 2431 *
2432 * To return commands, you need to set up an object of class 2432 * To return commands, you need to set up an object of class
2433 * \Drupal\Core\Ajax\AjaxResponse, and then use its addCommand() method to add 2433 * \Drupal\Core\Ajax\AjaxResponse, and then use its addCommand() method to add
2434 * individual commands to it. In the date format preview example, the format 2434 * individual commands to it. In the date format preview example, the format