You are here

EditForm.php in Linkit 8.5

Same filename in this branch
  1. 8.5 src/Form/Matcher/EditForm.php
  2. 8.5 src/Form/Profile/EditForm.php
Same filename and directory in other branches
  1. 8.4 src/Form/Profile/EditForm.php

File

src/Form/Profile/EditForm.php
View source
<?php

namespace Drupal\linkit\Form\Profile;

use Drupal\Core\Form\FormStateInterface;

/**
 * Provides an edit form for profile.
 *
 * @see \Drupal\linkit\Form\Profile\FormBase
 */
class EditForm extends FormBase {

  /**
   * {@inheritdoc}
   */
  protected function actions(array $form, FormStateInterface $form_state) {
    $actions = parent::actions($form, $form_state);
    $actions['submit']['#value'] = $this
      ->t('Update profile');
    $actions['delete']['#value'] = $this
      ->t('Delete profile');
    return $actions;
  }

}

Classes

Namesort descending Description
EditForm Provides an edit form for profile.