OpenSkill\Datatable\Providers\QueryBuilderProvider::getColumnFromName PHP Метод

getColumnFromName() приватный Метод

Get the requested column configuration from the name of a column
private getColumnFromName ( string $name ) : OpenSkill\Datatable\Columns\ColumnConfiguration
$name string
Результат OpenSkill\Datatable\Columns\ColumnConfiguration
    private function getColumnFromName($name)
    {
        foreach ($this->columnConfiguration as $i => $col) {
            if ($col->getName() == $name) {
                return $col;
            }
        }
        // This exception should never happen. If it does, something is
        // wrong w/ the relationship between searchable columns and the
        // configuration.
        throw new DatatableException("A requested column was not found in the columnConfiguration.");
    }