1 | <?php |
||
20 | class GeneralInfoConfig extends FormBase { |
||
21 | |||
22 | /** |
||
23 | * Entity browser display plugin manager. |
||
24 | * |
||
25 | * @var \Drupal\entity_browser\DisplayManager |
||
26 | */ |
||
27 | protected $displayManager; |
||
28 | |||
29 | /** |
||
30 | * Entity browser widget selector plugin manager. |
||
31 | * |
||
32 | * @var \Drupal\entity_browser\WidgetSelectorManager |
||
33 | */ |
||
34 | protected $widgetSelectorManager; |
||
35 | |||
36 | /** |
||
37 | * Entity browser selection display plugin manager. |
||
38 | * |
||
39 | * @var \Drupal\entity_browser\SelectionDisplayManager |
||
40 | */ |
||
41 | protected $selectionDisplayManager; |
||
42 | |||
43 | /** |
||
44 | * Entity browser widget plugin manager. |
||
45 | * |
||
46 | * @var \Drupal\entity_browser\WidgetManager |
||
47 | */ |
||
48 | protected $widgetManager; |
||
49 | |||
50 | /** |
||
51 | * Tempstore Factory for keeping track of values in each step of the wizard. |
||
52 | * |
||
53 | * @var \Drupal\user\SharedTempStoreFactory |
||
54 | */ |
||
55 | protected $tempstore; |
||
56 | |||
57 | protected $tempstoreId; |
||
58 | protected $machineName; |
||
59 | /** |
||
60 | * Constructs GeneralInfoConfig form class. |
||
61 | * |
||
62 | * @param \Drupal\entity_browser\DisplayManager $display_manager |
||
63 | * Entity browser display plugin manager. |
||
64 | * @param \Drupal\entity_browser\WidgetSelectorManager $widget_selector |
||
|
|||
65 | * Entity browser widget selector plugin manager. |
||
66 | * @param \Drupal\entity_browser\SelectionDisplayManager |
||
67 | * Entity browser selection display plugin manager. |
||
68 | */ |
||
69 | function __construct(DisplayManager $display_manager, WidgetSelectorManager $widget_selector_manager, SelectionDisplayManager $selection_display_manager, WidgetManager $widget_manager, SharedTempStoreFactory $temp_store, $tempstore_id = NULL, $machine_name = NULL) { |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | public static function create(ContainerInterface $container) { |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | public function getFormId() { |
||
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | public function buildForm(array $form, FormStateInterface $form_state) { |
||
143 | |||
144 | /** |
||
145 | * {@inheritdoc} |
||
146 | */ |
||
147 | public function submitForm(array &$form, FormStateInterface $form_state) { |
||
167 | |||
168 | } |
||
169 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.