You are here

class TableFactory in Data 8

Provides a class for table manipulation.

Hierarchy

Expanded class hierarchy of TableFactory

File

src/TableFactory.php, line 8

Namespace

Drupal\data
View source
class TableFactory implements TableFactoryInterface {
  static $instances;

  /**
   * @inheritdoc
   */
  public function get($name) {
    if (!isset(self::$instances[$name])) {
      self::$instances[$name] = new Table($name);
      throw new DataException('No table found');
    }
    return self::$instances[$name];
  }

}

Members