1 | <?php |
||
20 | class SelectForm extends FieldPluginBase { |
||
21 | |||
22 | /** |
||
23 | * Returns the ID for a result row. |
||
24 | * |
||
25 | * @param \Drupal\views\ResultRow $row |
||
26 | * The result row. |
||
27 | * |
||
28 | * @return string |
||
29 | * The row ID, in the form ENTITY_TYPE:ENTITY_ID. |
||
30 | */ |
||
31 | public function getRowId(ResultRow $row) { |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function render(ResultRow $values) { |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function preRender(&$values) { |
||
58 | |||
59 | /** |
||
60 | * Form constructor for the bulk form. |
||
61 | * |
||
62 | * @param array $render |
||
63 | * An associative array containing the structure of the form. |
||
64 | */ |
||
65 | public function viewsForm(&$render) { |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | public function query() {} |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | public function clickSortable() { return FALSE; } |
||
95 | |||
96 | } |
||
97 |
This error could be the result of:
1. Missing dependencies
PHP Analyzer uses your
composer.json
file (if available) to determine the dependencies of your project and to determine all the available classes and functions. It expects thecomposer.json
to be in the root folder of your repository.Are you sure this class is defined by one of your dependencies, or did you maybe not list a dependency in either the
require
orrequire-dev
section?2. Missing use statement
PHP does not complain about undefined classes in
ìnstanceof
checks. For example, the following PHP code will work perfectly fine:If you have not tested against this specific condition, such errors might go unnoticed.