protected function ViewEditFormController::actionsElement

Overrides Drupal\Core\Entity\EntityFormController::actionsElement().

Overrides EntityFormController::actionsElement

File

drupal/core/modules/views/views_ui/lib/Drupal/views_ui/ViewEditFormController.php, line 297
Contains Drupal\views_ui\ViewEditFormController.

Class

ViewEditFormController
Form controller for the Views edit form.

Namespace

Drupal\views_ui

Code

protected function actionsElement(array $form, array &$form_state) {
  $element = parent::actionsElement($form, $form_state);
  $element['#weight'] = 0;
  $view = $this
    ->getEntity($form_state);
  if (empty($view->changed)) {
    $element['#attributes'] = array(
      'class' => array(
        'js-hide',
      ),
    );
  }
  return $element;
}