function DefaultTableMapping::getExtraColumns

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php \Drupal\Core\Entity\Sql\DefaultTableMapping::getExtraColumns()
  2. 10 core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php \Drupal\Core\Entity\Sql\DefaultTableMapping::getExtraColumns()
  3. 11.x core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php \Drupal\Core\Entity\Sql\DefaultTableMapping::getExtraColumns()

Overrides TableMappingInterface::getExtraColumns

1 call to DefaultTableMapping::getExtraColumns()
DefaultTableMapping::getAllColumns in core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php
Gets a list of all database columns for a given table.

File

core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php, line 471

Class

DefaultTableMapping
Defines a default table mapping class.

Namespace

Drupal\Core\Entity\Sql

Code

public function getExtraColumns($table_name) {
    if (isset($this->extraColumns[$table_name])) {
        return $this->extraColumns[$table_name];
    }
    return [];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.