You are here

public function FieldEntry::defaultConfiguration in Flag 8.4

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides FormEntryTypeBase::defaultConfiguration

File

src/Plugin/ActionLink/FieldEntry.php, line 43

Class

FieldEntry
Class FieldEntry

Namespace

Drupal\flag\Plugin\ActionLink

Code

public function defaultConfiguration() {
  $options = parent::defaultConfiguration();

  // Change label for flag confirmation text.
  $options['flag_confirmation'] = $this
    ->t('Enter flagging details');
  $options['edit_flagging'] = $this
    ->t('Edit flagging details');
  $options['flag_update_button'] = $this
    ->t('Update flagging');
  return $options;
}