PresetEditForm.php in Video 8.2
Namespace
Drupal\video_transcode\FormFile
modules/video_transcode/src/Form/PresetEditForm.phpView source
<?php
namespace Drupal\video_transcode\Form;
use Drupal\Core\Form\FormStateInterface;
/**
* Class PresetEditForm.
*
* Provides the edit form for our Preset entity.
*
* @package Drupal\video_transcode\Form
*
* @ingroup video_transcode
*/
class PresetEditForm extends PresetFormBase {
/**
* Returns the actions provided by this form.
*
* For the edit form, we only need to change the text of the submit button.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* An associative array containing the current state of the form.
*
* @return array
* An array of supported actions for the current entity form.
*/
protected function actions(array $form, FormStateInterface $form_state) {
$actions = parent::actions($form, $form_state);
$actions['submit']['#value'] = $this
->t('Update');
return $actions;
}
}
Classes
Name![]() |
Description |
---|---|
PresetEditForm | Class PresetEditForm. |