Problem/Motivation

Deprecated function: range(): Passing null to parameter #2 ($end) of type string|int|float is deprecated in __TwigTemplate_c3409b517ecc8798025baac944e38cf9->doDisplay() (Zeile 55 in /vendor/twig/twig/src/Environment.php(420) : eval()'d code).

Steps to reproduce

Try adding a layout based on DrowlLayoutsMultiColumnLayout which thereby uses:

  /**
   * Returns the number of columns in this layout.
   *
   * !! Special case: the number is not clearly defined in this workaround class
   * !! here so we return NULL as special case.
   *
   * @var int
   */
  protected $columnCount = NULL;

and does NEVER override that value (like 2 / 3 col do - which are unaffected.

Proposed resolution

Do not show the setting that renders
templates/settings_preview/drowl-layouts-settings-preview-cell-width.html.twig

if columnCount is NULL

Remaining tasks

User interface changes

API changes

Data model changes

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:

Comments

anybody created an issue. See original summary.

anybody’s picture

Assigned: Unassigned » thomas.frobieter
Status: Active » Needs review
anybody’s picture

thomas.frobieter made their first commit to this issue’s fork.

thomas.frobieter’s picture

Status: Needs review » Reviewed & tested by the community
thomas.frobieter’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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