Type consistency remove NULLs

Created on 18 December 2017, over 7 years ago
Updated 23 January 2025, 3 months ago

This is a ultra trivial observation

In simple_gmap_theme() the default twig variable definitions defaults to NULL

Now that we have a simple_gmap.schema.yml they should shadow the defaults in

SimpleGMapFormatter::defaultSettings()

function simple_gmap_theme() {
  return [
    'simple_gmap_output' => [
      'variables' => [
        'include_map' => NULL,
        'include_static_map' => NULL,
        'include_link' => NULL,
        'include_text' => NULL,
        'address_text' => NULL,
        'width' => NULL,
        'height' => NULL,
        'static_scale' => NULL,
        'url_suffix' => NULL,
        'zoom' => NULL,
        'link_text' => NULL,
        'map_type' => NULL,
        'langcode' => NULL,
        'static_map_type' => NULL,
        'apikey' => NULL,
        'iframe_title' => '',
      ],
πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom martin107

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

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