1 | <?php |
||
18 | class GraphQLTwigSettingsForm extends ConfigFormBase { |
||
19 | |||
20 | |||
21 | /** |
||
22 | * Constructs a SiteInformationForm object. |
||
23 | * |
||
24 | * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory |
||
25 | * The factory for configuration objects. |
||
26 | * @param \Drupal\Core\Path\AliasManagerInterface $alias_manager |
||
|
|||
27 | * The path alias manager. |
||
28 | * @param \Drupal\Core\Path\PathValidatorInterface $path_validator |
||
29 | * The path validator. |
||
30 | * @param \Drupal\Core\Routing\RequestContext $request_context |
||
31 | * The request context. |
||
32 | */ |
||
33 | public function __construct(ConfigFactoryInterface $config_factory) { |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public static function create(ContainerInterface $container) { |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function getFormId() { |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | protected function getEditableConfigNames() { |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public function buildForm(array $form, FormStateInterface $form_state) { |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | public function submitForm(array &$form, FormStateInterface $form_state) { |
||
96 | |||
97 | } |
||
98 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.