ViewsPluginInterface::create() inherits from nothing, breaking PHPStan-strict

Created on 12 December 2015, almost 9 years ago
Updated 21 February 2023, almost 2 years ago

In the back of my mind ... there are always been a problem with my IDE's autocomplete when mucking around with create() methods ...

For view plugins the root interface create() annotation is corrupt.

Just for comedy value I am including a list of classes that extends ViewPluginInterface::create()

Drupal\views\Plugin\views\field\Field, Drupal\views\Plugin\views\PluginBase, Drupal\rest\Plugin\views\display\RestExport, Drupal\views\Plugin\views\row\EntityRow, system\Plugin\views\field\BulkForm, Drupal\datetime\Plugin\views\filter\Date, Drupal\views\Plugin\views\display\Page, Drupal\views\Plugin\views\argument\Date, Drupal\user\Plugin\views\access\Permission, Drupal\views\Plugin\views\cache\Time, Drupal\views\Plugin\views\display\PathPluginBase, Drupal\views\Plugin\views\display\Block, Drupal\taxonomy\Plugin\views\argument_default\Tid, Drupal\taxonomy\Plugin\views\filter\TaxonomyIndexTid, Drupal\views\Plugin\views\field\EntityOperations, Drupal\views\Plugin\views\argument_default\Raw, Drupal\views\Plugin\views\filter\Bundle, Drupal\user\Plugin\views\access\Role, Drupal\user\Plugin\views\field\Permissions, Drupal\block_content\Plugin\views\area\ListingEmpty, comment\Plugin\views\field\NodeNewComments, Drupal\user\Plugin\views\filter\Permissions, Drupal\views\Plugin\views\argument_validator\Entity, Drupal\views\Plugin\views\field\Date, file\Plugin\views\argument\Fid, node\Plugin\views\argument\Vid, Drupal\views\Plugin\views\area\Entity, Drupal\views\Plugin\views\field\LinkBase, Drupal\views\Plugin\views\area\View, Drupal\views\Plugin\views\field\EntityLabel, node\Plugin\views\argument_default\Node, Drupal\rest\Plugin\views\style\Serializer, Drupal\user\Plugin\views\argument_default\User, Drupal\taxonomy\Plugin\views\field\TaxonomyIndexTid, Drupal\taxonomy\Plugin\views\relationship\NodeTermData, Drupal\user\Plugin\views\field\Roles, Drupal\views\Plugin\views\filter\LanguageFilter, comment\Plugin\views\argument\UserUid, node\Plugin\views\area\ListingEmpty, Drupal\user\Plugin\views\argument\RolesRid, Drupal\user\Plugin\views\filter\Roles, Drupal\views\Plugin\views\field\TimeInterval, aggregator\Plugin\views\argument\Fid, aggregator\Plugin\views\argument\Iid, Drupal\taxonomy\Plugin\views\argument\VocabularyVid, Drupal\user\Plugin\views\argument\Uid, node\Plugin\views\argument\Type, node\Plugin\views\argument\Nid, Drupal\views\Plugin\views\row\RssPluginBase, Drupal\user\Plugin\views\field\UserData, Drupal\taxonomy\Plugin\views\argument\IndexTidDepth, Drupal\taxonomy\Plugin\views\argument\Taxonomy, and Drupal\views\Plugin\views\relationship\EntityReverse.

πŸ“Œ Task
Status

Fixed

Version

10.1 ✨

Component
ViewsΒ  β†’

Last updated about 4 hours ago

Created by

πŸ‡¬πŸ‡§United Kingdom martin107

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024