public function DefaultTableMapping::setExtraColumns
public DefaultTableMapping::setExtraColumns($table_name, array $column_names)
Adds a extra columns for a table to the table mapping.
Parameters
string $table_name: The name of table to add the extra columns for.
string[] $column_names: The list of column names.
Return value
$this
File
- core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php, line 258
Class
- DefaultTableMapping
- Defines a default table mapping class.
Namespace
Drupal\Core\Entity\SqlCode
public function setExtraColumns($table_name, array $column_names) { $this->extraColumns[$table_name] = $column_names; // Force the re-computation of the column list. unset($this->allColumns[$table_name]); return $this; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Sql!DefaultTableMapping.php/function/DefaultTableMapping::setExtraColumns/8.1.x