Problem/Motivation

Noticed in #2078593: In WizardPluginBase Rename Views properties to core standards by @alansaviolobo

some full namespace paths are wrong in comments, like

-   * @param \Drupal\views\View\plugin\display\DisplayPluginBase $display
+   * @param \Drupal\views\Plugin\views\display\DisplayPluginBase $display

ag --literal '\plugin\display\DisplayPluginBase' core/*

shows this is only in WizardPluginBase

Beta phase evaluation

So, this is allowed during the d8 beta.

Reference: https://www.drupal.org/core/beta-changes
Issue category Bug because the documentation is wrong.
Issue priority Minor because https://www.drupal.org/core/issue-priority mentions correction of typo in comment is minor.
Unfrozen changes Unfrozen because it only changes documentation

Proposed resolution

Fix just those wrong paths in the comments in this class.

Remaining tasks

Contributor tasks needed
Task Novice task? Contributor instructions Complete?
Create a patch novice Instructions
Update the issue summary noting if allowed during the beta Instructions done
Review patch to ensure that it fixes the issue, stays within scope, is properly documented, and follows coding standards novice Instructions

User interface changes

No.

API changes

No.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

YesCT’s picture

Issue summary: View changes
Issue tags: +Novice

DisplayPluginBase should be referred to by:
\Drupal\views\Plugin\views\display\DisplayPluginBase
(see the contains line and the namespace line near the top of core/modules/views/src/Plugin/views/display/DisplayPluginBase.php

--

ag --literal '\plugin\display\DisplayPluginBase' core/*
core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php
1161: * @param \Drupal\views\View\plugin\display\DisplayPluginBase $display
1165: * @param \Drupal\views\View\plugin\display\DisplayPluginBase $default_display
1197: * @param \Drupal\views\View\plugin\display\DisplayPluginBase $display
1201: * @param \Drupal\views\View\plugin\display\DisplayPluginBase $default_display

shows which lines need to change.

(ag: https://github.com/ggreer/the_silver_searcher )

Tom Verhaeghe’s picture

Status: Active » Needs review
FileSize
2.18 KB

Changed defect classpath in comments for setDefaultOptions() and setOverrideOptions() functions.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Thank you, for both providing a patch and create the initial issue.

YesCT’s picture

Issue summary: View changes

rtbc +1
that looks great.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

This issue is a minor bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 057bab1 and pushed to 8.0.x. Thanks!

  • alexpott committed 057bab1 on 8.0.x
    Issue #2376403 by Tom Verhaeghe: Some full name space paths wrong in...

Status: Fixed » Closed (fixed)

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