src/PeskyCMF/Scaffold/ScaffoldConfig.php
public function performActionForRecord($itemId, $actionName) {
        if (method_exists($this, $actionName)) {
            return $this->$actionName($itemId);
        } else {
            return cmfJsonResponse(HttpCode::NOT_FOUND)
                ->setMessage('Method [' . static::class . '->' . $actionName . '] is not defined');
        }
    }
public function performActionForRecord($itemId, $actionName) {
        if (method_exists($this, $actionName)) {
            return $this->$actionName($itemId);
        } else {
            return cmfJsonResponse(HttpCode::NOT_FOUND)
                ->setMessage('Method [' . static::class . '->' . $actionName . '] is not defined');
        }
    }
Call scaffold's method called $actionName with $itemId argument
@param string $itemId
@param string $actionName
@return $this