displayManager = $display_manager; $this->selectionDisplayManager = $selection_display_manager; $this->widgetSelectorManager = $widget_selector_manager; $this->widgetManager = $widget_manager; } /** * {@inheritdoc} */ public static function create(ContainerInterface $container) { return new static( $container->get('plugin.manager.entity_browser.display'), $container->get('plugin.manager.entity_browser.widget_selector'), $container->get('plugin.manager.entity_browser.selection_display'), $container->get('plugin.manager.entity_browser.widget') ); } /** * {@inheritdoc} */ public function getFormId() { return 'entity_browser_general_info_config_form'; } /** * {@inheritdoc} */ public function buildForm(array $form, FormStateInterface $form_state) { $cached_values = $form_state->getTemporaryValue('wizard'); /** @var \Drupal\entity_browser\EntityBrowserInterface $entity_browser */ $entity_browser = $cached_values['entity_browser']; if (empty($entity_browser->id())) { $help_text = '
' . $this->t('This is a multi-step form. In this first step you need to define the main characteristics of the Entity Browser (in other words, which plugins will be used for each functionality). In the following steps of this wizard, each individual plugin can be configured, when necessary.') . '
'; $help_text .= '' . $this->t('You can find more detailed information about creating and configuring Entity Browsers at the official documentation.', ['@guide_href' => 'https://drupal-media.gitbooks.io/drupal8-guide/content/modules/entity_browser/intro.html']) . '
'; $help_text .= '