A lot of plugins in core have a copy/pasted constructor documentation that should be tailored to the specific plugin.
See all instances of Constructs a Drupal\Component\Plugin\PluginBase object.
current in core:
By running this commannd in drupal root folder
grep -rn 'Constructs a Drupal\\Component\\Plugin\\PluginBase object' core
core/modules/aggregator/src/Plugin/views/argument/Fid.php: * Constructs a Drupal\Component\Plugin\PluginBase object.
core/modules/aggregator/src/Plugin/views/argument/Iid.php: * Constructs a Drupal\Component\Plugin\PluginBase object.
core/modules/ckeditor/src/Plugin/Editor/CKEditor.php: * Constructs a Drupal\Component\Plugin\PluginBase object.
core/modules/comment/src/Plugin/views/argument/UserUid.php: * Constructs a Drupal\Component\Plugin\PluginBase object.
core/modules/comment/src/Plugin/views/field/NodeNewComments.php: * Constructs a Drupal\Component\Plugin\PluginBase object.
core/modules/node/src/Plugin/views/argument/Vid.php: * Constructs a Drupal\Component\Plugin\PluginBase object.
core/modules/user/src/Plugin/views/argument/Uid.php: * Constructs a Drupal\Component\Plugin\PluginBase object.
core/modules/user/src/Plugin/views/field/Permissions.php: * Constructs a Drupal\Component\Plugin\PluginBase object.
core/modules/user/src/Plugin/views/field/Roles.php: * Constructs a Drupal\Component\Plugin\PluginBase object.
I don't think they need anything fancy, just maybe replaced with the actual plugin object being constructed.
Comment | File | Size | Author |
---|---|---|---|
#7 | interdiff-4-7.txt | 6.29 KB | msankhala |
#7 | fix-plugin-constructors-doc-2985147-7.patch | 6.11 KB | msankhala |
#4 | 2985147-4.patch | 5.64 KB | eli-on-drupal |
Comments
Comment #2
eli-on-drupal CreditAttribution: eli-on-drupal at Mindgrub Technologies commentedHere is a patch with the changes.
Comment #4
eli-on-drupal CreditAttribution: eli-on-drupal at Mindgrub Technologies commentedWhoops, I misconfigured my repo there. This one should be fixed.
Comment #5
neclimdulThanks! The namespaces look off though.
Drupal\aggregator
Drupal\ckeditor
\Drupal\comment
Drupal\node
Drupal\user
Comment #6
msankhala CreditAttribution: msankhala as a volunteer and at Srijan | A Material+ Company commentedAlso as per Drupal API documentation standards for classes and namespaces https://www.drupal.org/docs/develop/coding-standards/api-documentation-a...
Comment #7
msankhala CreditAttribution: msankhala as a volunteer and at Srijan | A Material+ Company commentedHere is updated patch.
Comment #8
msankhala CreditAttribution: msankhala as a volunteer and at Srijan | A Material+ Company commentedComment #9
msankhala CreditAttribution: msankhala as a volunteer and at Srijan | A Material+ Company commentedComment #11
neclimdullgtm
Comment #12
alexpottComment #13
alexpottCommitted and pushed 8c5075ad69 to 8.7.x and dbf7f873ea to 8.6.x. Thanks!