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
Issue fork drowl_layouts-3540807
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
Comment #3
anybodyComment #4
anybodyComment #7
thomas.frobieterComment #8
thomas.frobieter