public function MailhandlerComment::buildConfigurationForm in Mailhandler 8
File
- mailhandler_comment/
src/ Plugin/ inmail/ Handler/ MailhandlerComment.php, line 192
Class
- MailhandlerComment
- Message handler that supports posting comments via email.
Namespace
Drupal\mailhandler_comment\Plugin\inmail\HandlerCode
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form = parent::buildConfigurationForm($form, $form_state);
$form['entity_type'] = [
'#title' => $this
->t('Entity type'),
'#type' => 'select',
'#options' => $this
->getEntityTypes(),
'#default_value' => $this->configuration['entity_type'],
'#description' => $this
->t('Select a referenced entity type.'),
];
return $form;
}