Skip to content
Snippets Groups Projects

select2_all-3399753: Added readme file.

3 files
+ 67
3
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 0
2
@@ -6,7 +6,6 @@ use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Render\Element;
use Drupal\Core\Security\TrustedCallbackInterface;
use Drupal\field\Entity\FieldConfig;
/**
* Methods for adding Select2 to render elements.
@@ -33,7 +32,6 @@ class Select2 implements TrustedCallbackInterface {
// if ($select2_include != SELECT2_INCLUDE_EVERYWHERE && $is_admin == $select2_include) {
// return $element;
// }
// If the #select2 FAPI property is set, then add the appropriate class.
if (isset($element['#select2'])) {
if (!empty($element['#select2'])) {
Loading