summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-03-10 11:33:18 (GMT)
committerAlex Pott2015-03-10 11:33:18 (GMT)
commit1abfba43a18dc685a811e35efab243978439ee6c (patch)
treecdfcff3db4088b2643190a8b687d4584742143e3
parentb6e7d319e3a52af1d6473d51df561fa28e6e1bbd (diff)
Issue #1811242 by Katiemouse, mrjmd: Add missing type hinting to Dblog module docblocks
-rw-r--r--core/modules/dblog/src/Controller/DbLogController.php2
-rw-r--r--core/modules/dblog/src/Form/DblogFilterForm.php5
-rw-r--r--core/modules/dblog/src/Plugin/rest/resource/DBLogResource.php3
3 files changed, 9 insertions, 1 deletions
diff --git a/core/modules/dblog/src/Controller/DbLogController.php b/core/modules/dblog/src/Controller/DbLogController.php
index 680e50a..8e63436 100644
--- a/core/modules/dblog/src/Controller/DbLogController.php
+++ b/core/modules/dblog/src/Controller/DbLogController.php
@@ -331,7 +331,7 @@ class DbLogController extends ControllerBase {
/**
* Formats a database log message.
*
- * @param stdClass $row
+ * @param object $row
* The record from the watchdog table. The object properties are: wid, uid,
* severity, type, timestamp, message, variables, link, name.
*
diff --git a/core/modules/dblog/src/Form/DblogFilterForm.php b/core/modules/dblog/src/Form/DblogFilterForm.php
index 1401893..c18b2b3 100644
--- a/core/modules/dblog/src/Form/DblogFilterForm.php
+++ b/core/modules/dblog/src/Form/DblogFilterForm.php
@@ -88,6 +88,11 @@ class DblogFilterForm extends FormBase {
/**
* Resets the filter form.
+ *
+ * @param array $form
+ * An associative array containing the structure of the form.
+ * @param \Drupal\Core\Form\FormStateInterface $form_state
+ * The current state of the form.
*/
public function resetForm(array &$form, FormStateInterface $form_state) {
$_SESSION['dblog_overview_filter'] = array();
diff --git a/core/modules/dblog/src/Plugin/rest/resource/DBLogResource.php b/core/modules/dblog/src/Plugin/rest/resource/DBLogResource.php
index 14893bb..62510e2 100644
--- a/core/modules/dblog/src/Plugin/rest/resource/DBLogResource.php
+++ b/core/modules/dblog/src/Plugin/rest/resource/DBLogResource.php
@@ -30,6 +30,9 @@ class DBLogResource extends ResourceBase {
*
* Returns a watchdog log entry for the specified ID.
*
+ * @param int $id
+ * The ID of the watchdog log entry.
+ *
* @return \Drupal\rest\ResourceResponse
* The response containing the log entry.
*