You are here

public function PrivateMessageForm::afterBuild in Private Message 8

Same name and namespace in other branches
  1. 8.2 src/Form/PrivateMessageForm.php \Drupal\private_message\Form\PrivateMessageForm::afterBuild()

After build callback for the Private Message Form.

Overrides EntityForm::afterBuild

File

src/Form/PrivateMessageForm.php, line 279

Class

PrivateMessageForm
Defines the private message form.

Namespace

Drupal\private_message\Form

Code

public function afterBuild(array $form, FormStateInterface $form_state) {
  $form['message']['widget'][0]['format']['#access'] = FALSE;
  return $form;
}