Problem/Motivation

In #3252386: Use PHP attributes instead of doctrine annotations we added support for attribute based plugin discovery.
As part of that issue we converted block and action plugins.

This issue is to convert \Drupal\views\Annotation\ViewsRowplugins to use Attributes.

To do that we need #3421008: Convert ViewsExposedForm plugin discovery to attributes first. This issue is postponed on that.

Proposed resolution

  1. Add a class to represent the new Attribute - Example
  2. Update the plugin manager constructor to include both the attribute and annotation class names - example
  3. Convert all plugins that use the annotation to use the new attribute - example

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3420999

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

larowlan created an issue. See original summary.

larowlan’s picture

Status: Active » Postponed
larowlan’s picture

larowlan’s picture

alexpott’s picture

Title: [PP-1] Convert ViewsRow plugin discovery to attributes » Convert ViewsRow plugin discovery to attributes
Status: Postponed » Active

sorlov made their first commit to this issue’s fork.

sorlov’s picture

Status: Active » Needs work
sorlov’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Needs work

MR appears to have a failure. May need a rebase

sorlov’s picture

Status: Needs work » Needs review
mstrelan’s picture

Status: Needs review » Needs work
sorlov’s picture

Status: Needs work » Needs review

previously, ViewsRow annotation extends ViewsPluginAnnotationBase, not ViewsHandlerAnnotationBase

so we don't need to use PluginID here

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Needs Review Queue Initiative

Searched for @ViewsRow and all 13 instances were converted

Seems the suggestion of using PluginID has been addressed.

Tests are green now.

alexpott’s picture

Version: 11.x-dev » 10.3.x-dev
Status: Reviewed & tested by the community » Fixed

Committed and pushed 7184e9458c to 11.x and 498ce9e1a1 to 10.3.x. Thanks!

  • alexpott committed 498ce9e1 on 10.3.x
    Issue #3420999 by sorlov, larowlan, smustgrave, mstrelan: Convert...

  • alexpott committed 7184e945 on 11.x
    Issue #3420999 by sorlov, larowlan, smustgrave, mstrelan: Convert...

Status: Fixed » Closed (fixed)

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