You are here

public function SocialAlbumImageForm::buildForm in Open Social 10.3.x

Same name and namespace in other branches
  1. 10.0.x modules/social_features/social_album/src/Form/SocialAlbumImageForm.php \Drupal\social_album\Form\SocialAlbumImageForm::buildForm()
  2. 10.1.x modules/social_features/social_album/src/Form/SocialAlbumImageForm.php \Drupal\social_album\Form\SocialAlbumImageForm::buildForm()
  3. 10.2.x modules/social_features/social_album/src/Form/SocialAlbumImageForm.php \Drupal\social_album\Form\SocialAlbumImageForm::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 PostDeleteForm::buildForm

File

modules/social_features/social_album/src/Form/SocialAlbumImageForm.php, line 18

Class

SocialAlbumImageForm
Provides a form for deleting album post entities.

Namespace

Drupal\social_album\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form = parent::buildForm($form, $form_state);
  unset($form['#title']);
  return $form;
}