API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Plugin%21...

PluginWithFormsInterface should tell you to use PluginWithFormsTrait.
PluginWithFormsTrait should tell you that it's there to help with implementing PluginWithFormsInterface.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim created an issue. See original summary.

sarvjeetsingh’s picture

Assigned: Unassigned » sarvjeetsingh
sarvjeetsingh’s picture

Assigned: sarvjeetsingh » Unassigned
Status: Active » Needs review
FileSize
831 bytes

I have provided information about PluginWithFormsInterface.php methods in PluginWithFormsTrait.php.
I have gone through several core interfaces and traits and I think we don't need to provide the information about the trait in PluginWithFormsInterface.php.
Please review.
Thanks.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Abhijith S’s picture

FileSize
13.47 KB

I've applied patch #3 and its works fine.The information added to PluginWithFormsTrait is provided correctly. As @sarvjeetsingh said Interfaces generally doesn't tends to add information about.So no need for it

after

Abhijith S’s picture

Status: Needs review » Reviewed & tested by the community

  • catch committed 32d6d3b on 9.2.x
    Issue #3165065 by sarvjeetsingh, Abhijith S, joachim:...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 9.2.x and cherry-picked to 9.1.x, thanks!

  • catch committed 8b1bfc8 on 9.1.x
    Issue #3165065 by sarvjeetsingh, Abhijith S, joachim:...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.