Skip to content
This repository has been archived by the owner on Jan 5, 2018. It is now read-only.

Added support of auto select functionality #34

Open
wants to merge 4 commits into
base: 8.x-1.x
Choose a base branch
from

Conversation

mtodor
Copy link

@mtodor mtodor commented Oct 31, 2016

This functionality is explained in this ticet: https://www.drupal.org/node/2823670

And it's part of providing ajax functionality for selection of entities in entity browser, also described here: https://www.drupal.org/node/2822009

@@ -131,6 +134,27 @@ public function getForm(array &$original_form, FormStateInterface $form_state, a
$form['#attached']['library'][] = 'dropzonejs_eb_widget/common';
$original_form['#attributes']['class'][] = 'dropzonejs-disable-submit';

// Add hidden element used to make execution of auto-select of form.
if ($this->configuration['auto_select']) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use $config['settings'] -> instead of $this->configuration.

@mtodor mtodor force-pushed the feature/2823670-added-auto-select branch from 1094a7a to d19089c Compare November 8, 2016 11:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant