You are here

public function PanelizerDefaultDelete::buildForm in Panelizer 8.4

Same name and namespace in other branches
  1. 8.5 src/Form/PanelizerDefaultDelete.php \Drupal\panelizer\Form\PanelizerDefaultDelete::buildForm()
  2. 8.3 src/Form/PanelizerDefaultDelete.php \Drupal\panelizer\Form\PanelizerDefaultDelete::buildForm()

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form structure.

Overrides ConfirmFormBase::buildForm

File

src/Form/PanelizerDefaultDelete.php, line 142

Class

PanelizerDefaultDelete

Namespace

Drupal\panelizer\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $machine_name = NULL) {
  list($this->entityTypeId, $this->bundle, $this->viewMode, $this->displayId) = explode('__', $machine_name);
  return parent::buildForm($form, $form_state);
}