public function CrossdomainFormController::save in Crossdomain 8
Save the domain.
File
- lib/
Drupal/ crossdomain/ Controller/ CrossdomainFormController.php, line 62
Class
Namespace
Drupal\crossdomain\ControllerCode
public function save(array $form, array &$form_state) {
$domain = $this->entity;
$status = $domain
->save();
if ($status) {
drupal_set_message($this
->t('Saved %domain.', array(
'%domain' => $domain
->label(),
)));
}
else {
drupal_set_message($this
->t('The %domain was not saved.', array(
'%domain' => $domain
->label(),
)));
}
$form_state['redirect'] = 'admin/config/media/crossdomain';
}