Devise\Templates\TemplatesResponseHandler::executeFieldCleanup PHP Метод

executeFieldCleanup() публичный Метод

Executes cleanOldTemplateFields in TemplatesManager and properly handles the response.
public executeFieldCleanup ( string $templatePath ) : Redirect
$templatePath string
Результат Redirect
    public function executeFieldCleanup($templatePath)
    {
        if ($this->TemplatesCleaner->clearTemplateFields($templatePath)) {
            return $this->Redirect->route('dvs-templates')->with('message', 'Template cleaned succesfully');
        }
        return $this->Redirect->route('dvs-templates')->with('message', 'There were issues cleaning the template');
    }