You are here

protected function GridFormController::actions in Grid builder 8

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

File

lib/Drupal/gridbuilder/GridFormController.php, line 143
Definition of Drupal\gridbuilder\GridFormController.

Class

GridFormController
Form controller for the grid edit/add forms.

Namespace

Drupal\gridbuilder

Code

protected function actions(array $form, array &$form_state) {

  // Only includes a Save action for the entity, no direct Delete button.
  return array(
    'submit' => array(
      '#value' => t('Save'),
      '#validate' => array(
        array(
          $this,
          'validate',
        ),
      ),
      '#submit' => array(
        array(
          $this,
          'submit',
        ),
        array(
          $this,
          'save',
        ),
      ),
    ),
  );
}