You are here

public function Email::getDefaultFieldFormDisplay in Search API Saved Searches 8

Retrieves default form display settings for the plugin's custom fields.

Return value

array An associative array of form display settings, keyed by field names defined by this plugin. Fields can easily be hidden by default by just omitting them from this array.

Overrides NotificationPluginBase::getDefaultFieldFormDisplay

File

src/Plugin/search_api_saved_searches/notification/Email.php, line 357

Class

Email
Provides e-mails as a notification mechanism.

Namespace

Drupal\search_api_saved_searches\Plugin\search_api_saved_searches\notification

Code

public function getDefaultFieldFormDisplay() {
  return [
    'mail' => [
      'type' => 'email_default',
      'weight' => 2,
      'region' => 'content',
      'settings' => [
        'size' => 60,
        'placeholder' => 'user@example.com',
      ],
      'third_party_settings' => [],
    ],
  ];
}