| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | function df_tools_slideshow_form_block_content_slideshow_panels_ipe_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { |
||
| 12 | $form['#attributes']['class'][] = 'df-tools-slideshow-form'; |
||
| 13 | // Remove unneeded title added to field. |
||
| 14 | $form['field_block']['widget']['#title'] = ''; |
||
| 15 | // Add default styling to the inline form. |
||
| 16 | $form['field_block']['widget']['#title'] = t('Add slide'); |
||
| 17 | $form['field_block']['widget']['#type'] = 'fieldset'; |
||
| 18 | $form['field_block']['widget']['#attributes'] = ['class' => ['fieldset']]; |
||
| 19 | if (isset($form['field_block']['widget']['form'])) { |
||
| 20 | $widget_form = &$form['field_block']['widget']['form']; |
||
| 21 | // Existing. |
||
| 22 | if (isset($widget_form['entity_id'])) { |
||
| 40 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.