Skip to content
Snippets Groups Projects
Commit 6889e50f authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1811334 by Mile23, deepakaryan1988, Lars Toomre, yogen.prasad: Add...

Issue #1811334 by Mile23, deepakaryan1988, Lars Toomre, yogen.prasad: Add missing type hinting to Forum module docblocks
parent fbd67904
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
...@@ -392,12 +392,12 @@ function editForumVocabulary() { ...@@ -392,12 +392,12 @@ function editForumVocabulary() {
/** /**
* Creates a forum container or a forum. * Creates a forum container or a forum.
* *
* @param $type * @param string $type
* The forum type (forum container or forum). * The forum type (forum container or forum).
* @param $parent * @param int $parent
* The forum parent. This defaults to 0, indicating a root forum. * The forum parent. This defaults to 0, indicating a root forum.
* *
* @return * @return \Drupal\Core\Database\StatementInterface
* The created taxonomy term data. * The created taxonomy term data.
*/ */
function createForum($type, $parent = 0) { function createForum($type, $parent = 0) {
...@@ -441,7 +441,7 @@ function createForum($type, $parent = 0) { ...@@ -441,7 +441,7 @@ function createForum($type, $parent = 0) {
/** /**
* Deletes a forum. * Deletes a forum.
* *
* @param $tid * @param int $tid
* The forum ID. * The forum ID.
*/ */
function deleteForum($tid) { function deleteForum($tid) {
...@@ -461,9 +461,9 @@ function deleteForum($tid) { ...@@ -461,9 +461,9 @@ function deleteForum($tid) {
/** /**
* Runs basic tests on the indicated user. * Runs basic tests on the indicated user.
* *
* @param $user * @param \Drupal\Core\Session\AccountInterface $user
* The logged in user. * The logged in user.
* @param $admin * @param bool $admin
* User has 'access administration pages' privilege. * User has 'access administration pages' privilege.
*/ */
private function doBasicTests($user, $admin) { private function doBasicTests($user, $admin) {
...@@ -565,9 +565,9 @@ function createForumTopic($forum, $container = FALSE) { ...@@ -565,9 +565,9 @@ function createForumTopic($forum, $container = FALSE) {
* *
* @param \Drupal\Core\Entity\EntityInterface $node * @param \Drupal\Core\Entity\EntityInterface $node
* The node being checked. * The node being checked.
* @param $admin * @param bool $admin
* Boolean to indicate whether the user can 'access administration pages'. * Boolean to indicate whether the user can 'access administration pages'.
* @param $response * @param int $response
* The expected HTTP response code. * The expected HTTP response code.
*/ */
private function verifyForums(EntityInterface $node, $admin, $response = 200) { private function verifyForums(EntityInterface $node, $admin, $response = 200) {
...@@ -639,9 +639,9 @@ private function verifyForums(EntityInterface $node, $admin, $response = 200) { ...@@ -639,9 +639,9 @@ private function verifyForums(EntityInterface $node, $admin, $response = 200) {
/** /**
* Verifies the display of a forum page. * Verifies the display of a forum page.
* *
* @param $forum * @param array $forum
* A row from the taxonomy_term_data table in an array. * A row from the taxonomy_term_data table in an array.
* @param $parent * @param array $parent
* (optional) An array representing the forum's parent. * (optional) An array representing the forum's parent.
*/ */
private function verifyForumView($forum, $parent = NULL) { private function verifyForumView($forum, $parent = NULL) {
......
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