You are here

public function ParagraphEntityForm::defaultConfiguration in Paragraphs Inline Entity Form 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/EntityBrowser/Widget/ParagraphEntityForm.php \Drupal\paragraphs_inline_entity_form\Plugin\EntityBrowser\Widget\ParagraphEntityForm::defaultConfiguration()
  2. 2.x src/Plugin/EntityBrowser/Widget/ParagraphEntityForm.php \Drupal\paragraphs_inline_entity_form\Plugin\EntityBrowser\Widget\ParagraphEntityForm::defaultConfiguration()

File

src/Plugin/EntityBrowser/Widget/ParagraphEntityForm.php, line 24

Class

ParagraphEntityForm
A wrapper for EntityForm to provide a two step form where on the first step the user can select the Entity type and on the second step, to create content

Namespace

Drupal\paragraphs_inline_entity_form\Plugin\EntityBrowser\Widget

Code

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