From 845da7492b09c4fd7daf5954df3da6c64d4777cb Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Thu, 14 Jun 2018 15:18:41 +0100
Subject: [PATCH] Issue #2975751 by msankhala, leolando.tan, joachim,
 claudiu.cristea: incorrect @return for Tables::getTableMapping()

---
 core/lib/Drupal/Core/Entity/Query/Sql/Tables.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php b/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php
index 6d2604233327..a9ff4b136dcc 100644
--- a/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php
+++ b/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php
@@ -409,8 +409,10 @@ protected function addJoin($type, $table, $join_condition, $langcode, $delta = N
    * @param string $table
    *   The table name.
    *
-   * @return array|bool
-   *   The table field mapping for the given table or FALSE if not available.
+   * @return array|false
+   *   An associative array of table field mapping for the given table, keyed by
+   *   columns name and values are just incrementing integers. If the table
+   *   mapping is not available, FALSE is returned.
    */
   protected function getTableMapping($table, $entity_type_id) {
     $storage = $this->entityManager->getStorage($entity_type_id);
-- 
GitLab