[META] Rename Views properties to core standards

Created on 28 July 2013, almost 11 years ago
Updated 23 March 2023, over 1 year ago

Postponed until 8.1.x is open for development.

Similar to #1856630: [Change notice] [META] Rename Views methods to core standards β†’

Problem/Motivation

  • Currently, many Views property names use underscores rather than camelCase.

Beta phase evaluation

<!--Uncomment the relevant rows for the issue. -->

Thus is postponed to 8.1.x. similar to #1518116-86: [meta] Make Core pass Coder Review β†’

Proposed resolution

  • Do not change class properties that would make changes in .yml files.
  • Rename properties according to the new standard. "class properties should use lowerCamel naming" https://drupal.org/node/608152#naming
  • Convert property names exactly from underscore_separated to camelCase. So,
    foo_the_bar
    becomes
    fooTheBar.
  • Change public to protected (depending whether the variable is used outside of the class).
  • Replace var with public/protected, see previous point.
  • Update the docblock for the properties to agree with https://drupal.org/node/1354#var

Before replacing any property names, we must check that the new name is not already in use.

If we change a public property name of a class, we need to change all uses of that property in other files as part of the issue.

Instructions for creating issues

Until all the issues are created, these instructions are here so they are in a central location.

  1. Use this link to create a sub-issue for each of the below.
  2. Edit this issue and add a link to the new sub-issue in the appropriate "Issue" column in this issue summary using the syntax [#nid@].
  3. Only files that declare a class need to have issues created..

Follow ups

  • ?
πŸ“Œ Task
Status

Closed: duplicate

Version

10.1 ✨

Component
ViewsΒ  β†’

Last updated 1 minute ago

Created by

πŸ‡ΊπŸ‡ΈUnited States YesCT

Live updates comments and jobs are added and updated live.
  • VDC

    Related to the Views in Drupal Core initiative.

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.69.0 2024