You are here

public function TableFactory::get in Data 8

@inheritdoc

Overrides TableFactoryInterface::get

File

src/TableFactory.php, line 13

Class

TableFactory
Provides a class for table manipulation.

Namespace

Drupal\data

Code

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];
}