vendor/heimrichhannot/contao-google-maps-bundle/src/Resources/contao/dca/tl_page.php line 27

Open in your IDE?
  1. <?php
  2. /*
  3.  * Copyright (c) 2022 Heimrich & Hannot GmbH
  4.  *
  5.  * @license LGPL-3.0-or-later
  6.  */
  7. use Contao\Controller;
  8. use Contao\CoreBundle\DataContainer\PaletteManipulator;
  9. use Contao\System;
  10. $dca = &$GLOBALS['TL_DCA']['tl_page'];
  11. /*
  12.  * Palettes
  13.  */
  14. PaletteManipulator::create()
  15.     ->addLegend('huh_google_maps_legend''global_legend'PaletteManipulator::POSITION_AFTER)
  16.     ->addField('overrideGooglemaps_apiKey''huh_google_maps_legend'PaletteManipulator::POSITION_APPEND)
  17.     ->applyToPalette('root''tl_page')
  18.     ->applyToPalette('rootfallback''tl_page');
  19. /*
  20.  * Fields
  21.  */
  22. Controller::loadDataContainer('tl_settings');
  23. System::getContainer()->get('huh.utils.dca')->addOverridableFields(['googlemaps_apiKey'], 'tl_settings''tl_page');
  24. $GLOBALS['TL_DCA']['tl_page']['fields']['googlemaps_apiKey']['sql'] = "varchar(255) NOT NULL default ''";