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

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

Executes update template method in TemplatesManager and handles the response accordingly.
public executeUpdate ( string $templatePath, array $input ) : Redirect
$templatePath string Path to template
$input array
Результат Redirect
    public function executeUpdate($templatePath, $input)
    {
        $input = array_except($input, ['_method', '_token']);
        if ($this->TemplatesManager->updateTemplate($input)) {
            return $this->Redirect->route('dvs-templates')->with('message', 'Template updated succesfully');
        }
        return $this->Redirect->route('dvs-templates-edit', $templatePath)->withErrors($this->TemplatesManager->errors)->with('message', 'There were validation errors');
    }