Commit 6889e50f authored by webchick's avatar webchick

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
......@@ -392,12 +392,12 @@ function editForumVocabulary() {
/**
* Creates a forum container or a forum.
*
* @param $type
* @param string $type
* The forum type (forum container or forum).
* @param $parent
* @param int $parent
* The forum parent. This defaults to 0, indicating a root forum.
*
* @return
* @return \Drupal\Core\Database\StatementInterface
* The created taxonomy term data.
*/
function createForum($type, $parent = 0) {
......@@ -441,7 +441,7 @@ function createForum($type, $parent = 0) {
/**
* Deletes a forum.
*
* @param $tid
* @param int $tid
* The forum ID.
*/
function deleteForum($tid) {
......@@ -461,9 +461,9 @@ function deleteForum($tid) {
/**
* Runs basic tests on the indicated user.
*
* @param $user
* @param \Drupal\Core\Session\AccountInterface $user
* The logged in user.
* @param $admin
* @param bool $admin
* User has 'access administration pages' privilege.
*/
private function doBasicTests($user, $admin) {
......@@ -565,9 +565,9 @@ function createForumTopic($forum, $container = FALSE) {
*
* @param \Drupal\Core\Entity\EntityInterface $node
* The node being checked.
* @param $admin
* @param bool $admin
* Boolean to indicate whether the user can 'access administration pages'.
* @param $response
* @param int $response
* The expected HTTP response code.
*/
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.
*
* @param $forum
* @param array $forum
* A row from the taxonomy_term_data table in an array.
* @param $parent
* @param array $parent
* (optional) An array representing the forum's parent.
*/
private function verifyForumView($forum, $parent = NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment