Skip to content

Kirby 3.9.8

$query->table()

Sets the name of the table, which should be queried

$query->table(string $table): Kirby\Database\Query

Parameters

Name Type Default
$table * string

Return type

Kirby\Database\Query

This method does not modify the existing $query object but returns a new object with the changes applied. Learn more →

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException if the table does not exist

Parent class

Kirby\Database\Query