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\Sql
Code
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; }
Please login to continue.