Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 297754

Update doc blocks for configureEntityFormDisplay() and configureEntityViewDisplay()

$
0
0

Problem/Motivation

The doc blocks for configureEntityFormDisplay() and configureEntityViewDisplay() are inaccurate.

Originally, there was just one method, configureEntityDisplays(). In #2446511: Add a "preconfigured field options" concept in Field UI this was split up into two methods, and the original doc block was copied for both. The parameter comments were updated, but the first line of the doc block still reads

   * Configures the newly created field for the default view and form modes.

even though one of the new functions handles view modes and the other handles form modes.

Proposed resolution

Update the doc blocks to describe accurately what each method does.

Remaining tasks

Update the doc blocks.

User interface changes

None

API changes

None

Data model changes

None


Viewing all articles
Browse latest Browse all 297754

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>