public function ReplicationForm::deploy in Deploy - Content Staging 8
Main method to return an Ajax Response.
Return value
\Drupal\Core\Ajax\AjaxResponse AjaxResponse object.
File
- src/
Entity/ Form/ ReplicationForm.php, line 219
Class
- ReplicationForm
- Form controller for Replication edit forms.
Namespace
Drupal\deploy\Entity\FormCode
public function deploy() {
$response = new AjaxResponse();
$response
->addCommand(new CloseModalDialogCommand());
$response
->addCommand(new RedirectCommand(Url::fromRoute('entity.replication.collection')
->setAbsolute()
->toString()));
return $response;
}