Problem/Motivation

The render_example module has a dependency on the devel module. The render_example module contains a service that depends on the devel module and that displays render arrays output by the devel module.

This dependency needs to be removed. Either a new way of displaying the render arrays needs to be used or display of the render arrays can be abandoned. Currently the dependency is causing a test failure. This blocks https://www.drupal.org/project/examples/issues/2986435.

Steps to reproduce

  1. Run the functional test in the render_example module.
  2. View error messages when enabling the module.

Proposed resolution

TBA

Remaining tasks

Decide on the best approach. Look for alternative ways of displaying the render arrays on the page but without creating a dependency on any other contrib modules such as devel.

User interface changes

The render arrays might be removed (if no alternative way of doing it is discovered) from the pages displayed by the render_example module.

API changes

N/A

Data model changes

N/A

Comments

oily created an issue. See original summary.

oily’s picture

Issue summary: View changes
avpaderno’s picture

To avoid circular references issues, json_export() should be used. If the output of that function can be slightly changed to better render data, that should be done.

avpaderno’s picture

Title: Remove devel module dependency in render_example » Remove the dependency on the Devel module

If there are more modules that use functions or classes implemented by the Devel module, those modules need to be changed too. They should use a service implemented by the Examples module, from which every sub-module depends.