You are here

public function Table::defined in Data 8

Determine whether a table is defined.

Return value

TRUE if the table is defined, FALSE otherwise. Note: If a table is defined it does not mean that it actually exists in the database.

1 call to Table::defined()
Table::adopt in src/Table.php
Let Data manage a table that already exists in the database.

File

src/Table.php, line 201

Class

Table
Manages data access and manipulation for a single data table. Use data_create_table() or data_get_table() to instantiate an object from this class.

Namespace

Drupal\data

Code

public function defined() {
  return _data_load_table($this->name) ? TRUE : FALSE;
}