You are here

public function EntityForm::defaultConfiguration in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 modules/entity_form/src/Plugin/EntityBrowser/Widget/EntityForm.php \Drupal\entity_browser_entity_form\Plugin\EntityBrowser\Widget\EntityForm::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides WidgetBase::defaultConfiguration

File

modules/entity_form/src/Plugin/EntityBrowser/Widget/EntityForm.php, line 89

Class

EntityForm
Provides entity form widget.

Namespace

Drupal\entity_browser_entity_form\Plugin\EntityBrowser\Widget

Code

public function defaultConfiguration() {
  return [
    'entity_type' => NULL,
    'bundle' => NULL,
    'form_mode' => 'default',
    'submit_text' => $this
      ->t('Save entity'),
  ] + parent::defaultConfiguration();
}