You are here

public function ShurlyCreateForm::resetAjaxCall in ShURLy 8

Parameters

array $form:

\Drupal\Core\Form\FormStateInterface $form_state:

Return value

mixed

File

src/Form/ShurlyCreateForm.php, line 235

Class

ShurlyCreateForm
ShurlyCreateForm.

Namespace

Drupal\shurly\Form

Code

public function resetAjaxCall(array &$form, FormStateInterface $form_state) {
  $form['wrapper']['final_url']['#access'] = FALSE;
  $form['wrapper']['actions']['reset']['#access'] = FALSE;
  $form['wrapper']['long_url']['#access'] = TRUE;
  $form['wrapper']['options']['#access'] = TRUE;
  $form['wrapper']['actions']['submit']['#access'] = TRUE;
  return $form['wrapper'];
}