public function UserMail::settingsForm in Display Suite 8.3
Same name and namespace in other branches
- 8.4 src/Plugin/DsField/User/UserMail.php \Drupal\ds\Plugin\DsField\User\UserMail::settingsForm()
The form that holds the settings for this plugin.
Parameters
array $form: The form definition array for the field configuration form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The renderable form array representing the entire configuration form.
Overrides DsFieldBase::settingsForm
File
- src/
Plugin/ DsField/ User/ UserMail.php, line 30
Class
- UserMail
- Plugin that renders the username.
Namespace
Drupal\ds\Plugin\DsField\UserCode
public function settingsForm($form, FormStateInterface $form_state) {
$config = $this
->getConfiguration();
$settings['mail_link'] = [
'#type' => 'checkbox',
'#title' => 'Link to mail',
'#default_value' => $config['mail_link'],
];
return $settings;
}