Overrides Drupal\Core\Entity\EntityFormController::actions().
Overrides EntityFormController::actions
protected function actions(array $form, array &$form_state) {
$view = $this
->getEntity($form_state);
return array(
'#attributes' => array(
'id' => 'preview-submit-wrapper',
),
'button' => array(
'#type' => 'submit',
'#value' => t('Update preview'),
'#attributes' => array(
'class' => array(
'arguments-preview',
),
),
'#submit' => array(
array(
$this,
'submitPreview',
),
),
'#id' => 'preview-submit',
'#ajax' => array(
'path' => 'admin/structure/views/view/' . $view
->get('name') . '/preview/' . $view->displayID . '/ajax',
'wrapper' => 'views-preview-wrapper',
'event' => 'click',
'progress' => array(
'type' => 'throbber',
),
'method' => 'replace',
),
),
);
}