You are here

protected function MultiStepSelectionDisplayTest::changeFieldFormDisplayConfig in Entity Browser 8.2

Same name and namespace in other branches
  1. 8 tests/src/FunctionalJavascript/MultiStepSelectionDisplayTest.php \Drupal\Tests\entity_browser\FunctionalJavascript\MultiStepSelectionDisplayTest::changeFieldFormDisplayConfig()

Change selection mode for article reference field form display widget.

Parameters

array $configuration: Configuration that will be used for field form display.

1 call to MultiStepSelectionDisplayTest::changeFieldFormDisplayConfig()
MultiStepSelectionDisplayTest::testAjaxCommands in tests/src/FunctionalJavascript/MultiStepSelectionDisplayTest.php
Check that selection state in entity browser Inline Entity Form.

File

tests/src/FunctionalJavascript/MultiStepSelectionDisplayTest.php, line 69

Class

MultiStepSelectionDisplayTest
Test for multi_step_display selection display.

Namespace

Drupal\Tests\entity_browser\FunctionalJavascript

Code

protected function changeFieldFormDisplayConfig(array $configuration) {

  /** @var \Drupal\Core\Entity\Display\EntityFormDisplayInterface $form_display */
  $form_display = $this->container
    ->get('entity_type.manager')
    ->getStorage('entity_form_display')
    ->load('node.article.default');
  $form_display
    ->setComponent('field_reference', NestedArray::mergeDeep($form_display
    ->getComponent('field_reference'), $configuration))
    ->save();
}