src/PeskyCMF/UI/CmfUIModule.php
public function getTableByResourceName(string $resourceName): TableInterface {
        if (!isset($this->tables[$resourceName])) {
            $scaffoldConfigClass = $this->getScaffoldConfigClass($resourceName);
            $this->tables[$resourceName] = $scaffoldConfigClass::getTable();
        }
        return $this->tables[$resourceName];
    }
public function getTableByResourceName(string $resourceName): TableInterface {
        if (!isset($this->tables[$resourceName])) {
            $scaffoldConfigClass = $this->getScaffoldConfigClass($resourceName);
            $this->tables[$resourceName] = $scaffoldConfigClass::getTable();
        }
        return $this->tables[$resourceName];
    }
Get TableInterface instance for $tableName
Note: can be ovewritted to allow usage of fake tables in resources routes
It is possible to use this with static::getScaffoldConfig() to alter default scaffold configs
@param string $resourceName
@return TableInterface