src/PeskyCMF/UI/CmfUIModule.php
public function getScaffoldConfig(string $resourceName): ScaffoldConfigInterface {
        if (!isset($this->scaffoldConfigs[$resourceName])) {
            $className = $this->getScaffoldConfigClass($resourceName);
            $this->scaffoldConfigs[$resourceName] = new $className();
        }
        return $this->scaffoldConfigs[$resourceName];
    }
public function getScaffoldConfig(string $resourceName): ScaffoldConfigInterface {
        if (!isset($this->scaffoldConfigs[$resourceName])) {
            $className = $this->getScaffoldConfigClass($resourceName);
            $this->scaffoldConfigs[$resourceName] = new $className();
        }
        return $this->scaffoldConfigs[$resourceName];
    }
Get ScaffoldConfig instance
@param string $resourceName - table name passed via route parameter, may differ from $table->getTableName()
and added here to be used in child configs when you need to use scaffolds with fake table names.
It should be used together with static::getModelByTableName() to provide correct model for a fake table name
@return ScaffoldConfigInterface
@throws \InvalidArgumentException