public function RedhenContactFormBlock::buildConfigurationForm in RedHen CRM 8
Form to determine which Redhen Contact fields will appear on the form.
Parameters
array $form:
\Drupal\Core\Form\FormStateInterface $form_state:
Return value
array
Overrides BlockPluginTrait::buildConfigurationForm
File
- modules/
redhen_contact/ src/ Plugin/ Block/ RedhenContactFormBlock.php, line 39
Class
- RedhenContactFormBlock
- Provides configurable form to add Redhen Contacts.
Namespace
Drupal\redhen_contact\Plugin\BlockCode
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form = parent::buildConfigurationForm($form, $form_state);
$redhen_contact_types = ContactType::loadMultiple();
$form['redhen_contact_type'] = [
'#type' => 'select',
'#title' => $this
->t('Select element'),
'#options' => $redhen_contact_types,
];
return $form;
}