PresentationAddForm.php in Isotope (with Masonry and Packery) 8
Contains Drupal\isotope\Form\PresentationAddForm.
Namespace
Drupal\isotope\FormFile
src/Form/PresentationAddForm.phpView source
<?php
/**
* @file
* Contains Drupal\isotope\Form\PresentationAddForm.
*/
namespace Drupal\isotope\Form;
use Drupal\Core\Form\FormStateInterface;
/**
* Class PresentationAddForm.
*
* Provides the add form for our Presentation entity.
*
* @package Drupal\isotope\Form
*
* @ingroup isotope
*/
class PresentationAddForm extends PresentationFormBase {
/**
* Returns the actions provided by this form.
*
* For our add 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('Create Presentation');
return $actions;
}
}
Classes
Name | Description |
---|---|
PresentationAddForm | Class PresentationAddForm. |