Fixed phpcs issues.
8 unresolved threads
8 unresolved threads
Closes #3353268
Merge request reports
Activity
10 10 * This Class modifies the autocomplete widget such that even though a field storage is multiple 11 11 * if a field_config_cardinality of 1 is specified the single element is used. 12 12 * 13 * Class EntityReferenceAutocompleteWidget 13 * Class EntityReferenceAutocompleteWidget. The description is merely repeating the class name. Class at the beginning of the description, and the period at the end, do not change that.
Edited by Alberto Padernochanged this line in version 3 of the diff
6 6 use Drupal\Core\Form\FormStateInterface; 7 7 use Drupal\media_library\Plugin\Field\FieldWidget\MediaLibraryWidget; 8 8 9 /** 10 * This Class is for maintaining cardinality of media libray widget. 11 * 12 * Class CardinalityMediaLibraryWidget. changed this line in version 4 of the diff
27 28 * Implements hook_form_alter(). 28 29 * 29 30 * @param $form 30 * @param FormStateInterface $form_state 31 * @param \Drupal\Core\Form\FormStateInterface $form_state 31 32 * @param $form_id changed this line in version 3 of the diff
155 156 } 156 157 157 158 /** 158 159 * Implements entity_builder. changed this line in version 3 of the diff
155 156 } 156 157 157 158 /** 158 159 * Implements entity_builder. 159 160 * see here: https://www.drupal.org/node/2334447 and https://www.drupal.org/node/2326151 160 161 * 161 162 * @param $entity_type 162 163 * @param \Drupal\field\Entity\FieldConfig $config 163 164 * @param $form 164 * @param FormStateInterface $form_state 165 * @param \Drupal\Core\Form\FormStateInterface $form_state changed this line in version 3 of the diff
188 189 } 189 190 190 191 /** 191 * Implements hook_form_alter(). 192 * Implements hook_form_FORM_ID_alter(). It is a
hook_field_widget_multivalue_form_alter()
implementation.changed this line in version 3 of the diff
224 220 } 225 221 226 222 /** 227 * Implements hook_preprocess_field_multiple_value_form() 223 * Implements hook_preprocess_field_multiple_value_form(). changed this line in version 4 of the diff
252 248 $items = []; 253 249 $variables['button'] = []; 254 250 foreach (Element::children($element) as $key) { 255 if (is_integer($key)) { 251 if (is_int($key)) {
Please register or sign in to reply