class TableFactory in Data 8
Provides a class for table manipulation.
Hierarchy
- class \Drupal\data\TableFactory implements TableFactoryInterface
Expanded class hierarchy of TableFactory
File
- src/
TableFactory.php, line 8
Namespace
Drupal\dataView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TableFactory:: |
static | property | ||
TableFactory:: |
public | function |
@inheritdoc Overrides TableFactoryInterface:: |