forked from Snck3rs/contao-leaflet-maps
Replace old alias generator callback definition with toolkit 3.0 compatible ones.
This commit is contained in:
@@ -171,12 +171,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = array
|
|||||||
'inputType' => 'text',
|
'inputType' => 'text',
|
||||||
'search' => true,
|
'search' => true,
|
||||||
'save_callback' => array(
|
'save_callback' => array(
|
||||||
\Netzmacht\Contao\Toolkit\Dca\Callback\CallbackFactory::aliasGenerator(
|
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
|
||||||
'tl_leaflet_control',
|
|
||||||
'alias',
|
|
||||||
['title'],
|
|
||||||
\Netzmacht\Contao\Leaflet\DependencyInjection\LeafletServices::PARENT_ALIAS_GENERATOR
|
|
||||||
),
|
|
||||||
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'],
|
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'],
|
||||||
),
|
),
|
||||||
'eval' => array(
|
'eval' => array(
|
||||||
@@ -185,6 +180,12 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = array
|
|||||||
'tl_class' => 'w50',
|
'tl_class' => 'w50',
|
||||||
'nullIfEmpty' => true,
|
'nullIfEmpty' => true,
|
||||||
),
|
),
|
||||||
|
'toolkit' => [
|
||||||
|
'alias_generator' => [
|
||||||
|
'factory' => 'netzmacht.contao_leaflet_maps.definition.alias_generator.factory_parent',
|
||||||
|
'fields' => ['title']
|
||||||
|
],
|
||||||
|
],
|
||||||
'sql' => 'varchar(255) NULL'
|
'sql' => 'varchar(255) NULL'
|
||||||
),
|
),
|
||||||
'type' => array
|
'type' => array
|
||||||
|
|||||||
@@ -193,15 +193,16 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array
|
|||||||
'exclude' => true,
|
'exclude' => true,
|
||||||
'inputType' => 'text',
|
'inputType' => 'text',
|
||||||
'save_callback' => array(
|
'save_callback' => array(
|
||||||
\Netzmacht\Contao\Toolkit\Dca\Callback\CallbackFactory::aliasGenerator(
|
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
|
||||||
'tl_leaflet_icon',
|
|
||||||
'alias',
|
|
||||||
['title'],
|
|
||||||
\Netzmacht\Contao\Leaflet\DependencyInjection\LeafletServices::ALIAS_GENERATOR
|
|
||||||
),
|
|
||||||
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'],
|
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'],
|
||||||
),
|
),
|
||||||
'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true),
|
'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true),
|
||||||
|
'toolkit' => [
|
||||||
|
'alias_generator' => [
|
||||||
|
'factory' => 'netzmacht.contao_leaflet_maps.definition.alias_generator.factory_default',
|
||||||
|
'fields' => ['title']
|
||||||
|
],
|
||||||
|
],
|
||||||
'sql' => 'varchar(255) NULL'
|
'sql' => 'varchar(255) NULL'
|
||||||
),
|
),
|
||||||
'type' => array
|
'type' => array
|
||||||
|
|||||||
@@ -258,15 +258,16 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
|
|||||||
'inputType' => 'text',
|
'inputType' => 'text',
|
||||||
'search' => true,
|
'search' => true,
|
||||||
'save_callback' => [
|
'save_callback' => [
|
||||||
\Netzmacht\Contao\Toolkit\Dca\Callback\CallbackFactory::aliasGenerator(
|
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
|
||||||
'tl_leaflet_layer',
|
|
||||||
'alias',
|
|
||||||
['title'],
|
|
||||||
\Netzmacht\Contao\Leaflet\DependencyInjection\LeafletServices::ALIAS_GENERATOR
|
|
||||||
),
|
|
||||||
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'],
|
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'],
|
||||||
],
|
],
|
||||||
'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true],
|
'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true],
|
||||||
|
'toolkit' => [
|
||||||
|
'alias_generator' => [
|
||||||
|
'factory' => 'netzmacht.contao_leaflet_maps.definition.alias_generator.factory_default',
|
||||||
|
'fields' => ['title']
|
||||||
|
],
|
||||||
|
],
|
||||||
'sql' => 'varchar(255) NULL',
|
'sql' => 'varchar(255) NULL',
|
||||||
],
|
],
|
||||||
'type' => [
|
'type' => [
|
||||||
|
|||||||
@@ -174,15 +174,16 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array
|
|||||||
'inputType' => 'text',
|
'inputType' => 'text',
|
||||||
'search' => true,
|
'search' => true,
|
||||||
'save_callback' => array(
|
'save_callback' => array(
|
||||||
\Netzmacht\Contao\Toolkit\Dca\Callback\CallbackFactory::aliasGenerator(
|
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
|
||||||
'tl_leaflet_map',
|
|
||||||
'alias',
|
|
||||||
['title'],
|
|
||||||
\Netzmacht\Contao\Leaflet\DependencyInjection\LeafletServices::ALIAS_GENERATOR
|
|
||||||
),
|
|
||||||
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias']
|
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias']
|
||||||
),
|
),
|
||||||
'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true),
|
'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true),
|
||||||
|
'toolkit' => [
|
||||||
|
'alias_generator' => [
|
||||||
|
'factory' => 'netzmacht.contao_leaflet_maps.definition.alias_generator.factory_default',
|
||||||
|
'fields' => ['title']
|
||||||
|
]
|
||||||
|
],
|
||||||
'sql' => 'varchar(255) NULL'
|
'sql' => 'varchar(255) NULL'
|
||||||
),
|
),
|
||||||
'center' => array
|
'center' => array
|
||||||
|
|||||||
@@ -175,15 +175,16 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array
|
|||||||
'inputType' => 'text',
|
'inputType' => 'text',
|
||||||
'search' => true,
|
'search' => true,
|
||||||
'save_callback' => array(
|
'save_callback' => array(
|
||||||
\Netzmacht\Contao\Toolkit\Dca\Callback\CallbackFactory::aliasGenerator(
|
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
|
||||||
'tl_leaflet_marker',
|
|
||||||
'alias',
|
|
||||||
['title'],
|
|
||||||
\Netzmacht\Contao\Leaflet\DependencyInjection\LeafletServices::ALIAS_GENERATOR
|
|
||||||
),
|
|
||||||
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'],
|
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'],
|
||||||
),
|
),
|
||||||
'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true),
|
'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true),
|
||||||
|
'toolkit' => [
|
||||||
|
'alias_generator' => [
|
||||||
|
'factory' => 'netzmacht.contao_leaflet_maps.definition.alias_generator.factory_default',
|
||||||
|
'fields' => ['title']
|
||||||
|
],
|
||||||
|
],
|
||||||
'sql' => 'varchar(255) NULL'
|
'sql' => 'varchar(255) NULL'
|
||||||
),
|
),
|
||||||
'coordinates' => array
|
'coordinates' => array
|
||||||
|
|||||||
@@ -165,15 +165,16 @@ $GLOBALS['TL_DCA']['tl_leaflet_popup'] = array
|
|||||||
'exclude' => true,
|
'exclude' => true,
|
||||||
'inputType' => 'text',
|
'inputType' => 'text',
|
||||||
'save_callback' => array(
|
'save_callback' => array(
|
||||||
\Netzmacht\Contao\Toolkit\Dca\Callback\CallbackFactory::aliasGenerator(
|
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
|
||||||
'tl_leaflet_popup',
|
|
||||||
'alias',
|
|
||||||
['title'],
|
|
||||||
\Netzmacht\Contao\Leaflet\DependencyInjection\LeafletServices::ALIAS_GENERATOR
|
|
||||||
),
|
|
||||||
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'],
|
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'],
|
||||||
),
|
),
|
||||||
'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true),
|
'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true),
|
||||||
|
'toolkit' => [
|
||||||
|
'alias_generator' => [
|
||||||
|
'factory' => 'netzmacht.contao_leaflet_maps.definition.alias_generator.factory_default',
|
||||||
|
'fields' => ['title']
|
||||||
|
],
|
||||||
|
],
|
||||||
'sql' => 'varchar(255) NULL'
|
'sql' => 'varchar(255) NULL'
|
||||||
),
|
),
|
||||||
'maxWidth' => array
|
'maxWidth' => array
|
||||||
|
|||||||
@@ -159,15 +159,16 @@ $GLOBALS['TL_DCA']['tl_leaflet_style'] = array
|
|||||||
'exclude' => true,
|
'exclude' => true,
|
||||||
'inputType' => 'text',
|
'inputType' => 'text',
|
||||||
'save_callback' => array(
|
'save_callback' => array(
|
||||||
\Netzmacht\Contao\Toolkit\Dca\Callback\CallbackFactory::aliasGenerator(
|
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
|
||||||
'tl_leaflet_style',
|
|
||||||
'alias',
|
|
||||||
['title'],
|
|
||||||
\Netzmacht\Contao\Leaflet\DependencyInjection\LeafletServices::ALIAS_GENERATOR
|
|
||||||
),
|
|
||||||
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'],
|
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'],
|
||||||
),
|
),
|
||||||
'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true),
|
'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true),
|
||||||
|
'toolkit' => [
|
||||||
|
'alias_generator' => [
|
||||||
|
'factory' => 'netzmacht.contao_leaflet_maps.definition.alias_generator.factory_default',
|
||||||
|
'fields' => ['title']
|
||||||
|
],
|
||||||
|
],
|
||||||
'sql' => 'varchar(255) NULL'
|
'sql' => 'varchar(255) NULL'
|
||||||
),
|
),
|
||||||
'type' => array
|
'type' => array
|
||||||
|
|||||||
@@ -203,15 +203,16 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array
|
|||||||
'inputType' => 'text',
|
'inputType' => 'text',
|
||||||
'search' => true,
|
'search' => true,
|
||||||
'save_callback' => array(
|
'save_callback' => array(
|
||||||
\Netzmacht\Contao\Toolkit\Dca\Callback\CallbackFactory::aliasGenerator(
|
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
|
||||||
'tl_leaflet_vector',
|
|
||||||
'alias',
|
|
||||||
['title'],
|
|
||||||
\Netzmacht\Contao\Leaflet\DependencyInjection\LeafletServices::ALIAS_GENERATOR
|
|
||||||
),
|
|
||||||
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'],
|
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'],
|
||||||
),
|
),
|
||||||
'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true),
|
'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true),
|
||||||
|
'toolkit' => [
|
||||||
|
'alias_generator' => [
|
||||||
|
'factory' => 'netzmacht.contao_leaflet_maps.definition.alias_generator.factory_default',
|
||||||
|
'fields' => ['title']
|
||||||
|
],
|
||||||
|
],
|
||||||
'sql' => 'varchar(255) NULL'
|
'sql' => 'varchar(255) NULL'
|
||||||
),
|
),
|
||||||
'type' => array
|
'type' => array
|
||||||
|
|||||||
Reference in New Issue
Block a user