protected function PictureMappingFormController::actions

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

Overrides EntityFormController::actions

File

drupal/core/modules/picture/lib/Drupal/picture/PictureMappingFormController.php, line 95
Contains Drupal\picture\PictureFormController.

Class

PictureMappingFormController
Form controller for the picture edit/add forms.

Namespace

Drupal\picture

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',
        ),
      ),
    ),
  );
}