You are here

public function FormEntryTypeBase::defaultConfiguration in Flag 8.4

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ActionLinkTypeBase::defaultConfiguration

2 calls to FormEntryTypeBase::defaultConfiguration()
FieldEntry::defaultConfiguration in src/Plugin/ActionLink/FieldEntry.php
Gets default configuration for this plugin.
FormEntryTypeBase::submitConfigurationForm in src/Plugin/ActionLink/FormEntryTypeBase.php
Processes the action link setting form submit.
1 method overrides FormEntryTypeBase::defaultConfiguration()
FieldEntry::defaultConfiguration in src/Plugin/ActionLink/FieldEntry.php
Gets default configuration for this plugin.

File

src/Plugin/ActionLink/FormEntryTypeBase.php, line 19

Class

FormEntryTypeBase
Base class for link types using form entry.

Namespace

Drupal\flag\Plugin\ActionLink

Code

public function defaultConfiguration() {
  $options = parent::defaultConfiguration();
  $options += [
    'flag_confirmation' => $this
      ->t('Flag this content?'),
    'unflag_confirmation' => $this
      ->t('Unflag this content?'),
    'flag_create_button' => $this
      ->t('Create flagging'),
    'flag_delete_button' => $this
      ->t('Delete flagging'),
    'form_behavior' => 'default',
  ];
  return $options;
}