Skip to content
Snippets Groups Projects
Commit 99b7c9f6 authored by catch's avatar catch
Browse files

Issue #2914834 by snehi, tresti88, joachim: missing @return for...

Issue #2914834 by snehi, tresti88, joachim: missing @return for drupal_get_user_timezone() and return types for other methods in bootstrap.inc
parent c3383951
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -210,7 +210,7 @@ function config_get_config_directory($type) { ...@@ -210,7 +210,7 @@ function config_get_config_directory($type) {
* The filename of the item if it is to be set explicitly rather * The filename of the item if it is to be set explicitly rather
* than by consulting the database. * than by consulting the database.
* *
* @return * @return string
* The filename of the requested item or NULL if the item is not found. * The filename of the requested item or NULL if the item is not found.
*/ */
function drupal_get_filename($type, $name, $filename = NULL) { function drupal_get_filename($type, $name, $filename = NULL) {
...@@ -275,7 +275,7 @@ function drupal_get_filename($type, $name, $filename = NULL) { ...@@ -275,7 +275,7 @@ function drupal_get_filename($type, $name, $filename = NULL) {
* The name of the item for which the path is requested. Ignored for * The name of the item for which the path is requested. Ignored for
* $type 'core'. * $type 'core'.
* *
* @return * @return string
* The path to the requested item or an empty string if the item is not found. * The path to the requested item or an empty string if the item is not found.
*/ */
function drupal_get_path($type, $name) { function drupal_get_path($type, $name) {
...@@ -534,6 +534,9 @@ function drupal_get_messages($type = NULL, $clear_queue = TRUE) { ...@@ -534,6 +534,9 @@ function drupal_get_messages($type = NULL, $clear_queue = TRUE) {
/** /**
* Returns the time zone of the current user. * Returns the time zone of the current user.
*
* @return string
* The name of the current user's timezone or the name of the default timezone.
*/ */
function drupal_get_user_timezone() { function drupal_get_user_timezone() {
$user = \Drupal::currentUser(); $user = \Drupal::currentUser();
...@@ -913,7 +916,7 @@ function drupal_classloader_register($name, $path) { ...@@ -913,7 +916,7 @@ function drupal_classloader_register($name, $path) {
* internally and should not be passed in; use drupal_static_reset() instead. * internally and should not be passed in; use drupal_static_reset() instead.
* (This function's return value should not be used when TRUE is passed in.) * (This function's return value should not be used when TRUE is passed in.)
* *
* @return * @return array
* Returns a variable by reference. * Returns a variable by reference.
* *
* @see drupal_static_reset() * @see drupal_static_reset()
...@@ -989,7 +992,7 @@ function drupal_placeholder($text) { ...@@ -989,7 +992,7 @@ function drupal_placeholder($text) {
* @param ... * @param ...
* Additional arguments to pass to the shutdown function. * Additional arguments to pass to the shutdown function.
* *
* @return * @return array
* Array of shutdown functions to be executed. * Array of shutdown functions to be executed.
* *
* @see register_shutdown_function() * @see register_shutdown_function()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment