Tripal
Public Member Functions | List of all members
Drupal\tripal\Form\TripalFileQuotaCustomEdit Class Reference
Inheritance diagram for Drupal\tripal\Form\TripalFileQuotaCustomEdit:
Inheritance graph
[legend]
Collaboration diagram for Drupal\tripal\Form\TripalFileQuotaCustomEdit:
Collaboration graph
[legend]

Public Member Functions

 getFormId ()
 
 buildForm (array $form, FormStateInterface $form_state, $uid=NULL)
 
 validateForm (array &$form, FormStateInterface $form_state)
 
 submitForm (array &$form, FormStateInterface $form_state)
 

Member Function Documentation

◆ buildForm()

Drupal\tripal\Form\TripalFileQuotaCustomEdit::buildForm ( array  $form,
FormStateInterface  $form_state,
  $uid = NULL 
)

Build a form to allow the user to set the default quota and control user specific quota.

Parameters
array$form
\Drupal\Core\Form\FormStateInterface$form_state
Returns
array

◆ getFormId()

Drupal\tripal\Form\TripalFileQuotaCustomEdit::getFormId ( )

Form ID.

Returns
string

◆ submitForm()

Drupal\tripal\Form\TripalFileQuotaCustomEdit::submitForm ( array &  $form,
FormStateInterface  $form_state 
)

Write to the two drupal state the site wide default quota and exp date.

Parameters
array$form
\Drupal\Core\Form\FormStateInterface$form_state

◆ validateForm()

Drupal\tripal\Form\TripalFileQuotaCustomEdit::validateForm ( array &  $form,
FormStateInterface  $form_state 
)

Validate the form's values: proper numbers and/or MB, GB, TB for quota field.

Parameters
array$form
\Drupal\Core\Form\FormStateInterface$form_state

The documentation for this class was generated from the following file: