2017-10-04 6 views
0

私は、以下の例のように、flexformで同じ設定が必要どのように設定USERFUNC「パラメータは」

'configuration_map' => array(
     'exclude' => 0, 
     'label' => 'Map', 
     'config' => array(
      'type' => 'user', 
      'userFunc' => 'Vendor\\Extension\\Utility\\LocationUtility->render', 
      'parameters' => array(
       'lng' => 'lng', 
       'lat' => 'lat', 
       'address' => 'address', 
      ), 
     ), 
    ), 

私のTCAでのGoogleマップの設定を持っています。どのようにxmlのuserFunc "parameters"を設定しますか?

<settings.map> 
    <TCEforms> 
     <label>Map</label> 
    <config> 
     <type>user</type>  
     <userFunc>Vendor\Extension\Utility\LocationUtility->render</userFunc>          
     <parameters> 
     </parameters> 
     </config> 
    </TCEforms> 
    </settings.map> 

答えて

0

それは次のようになります。

<settings.map> 
    <TCEforms> 
     <label>Map</label> 
     <config> 
      <type>user</type>  
      <userFunc>\Vendor\Extension\Utility\LocationUtility->render</userFunc>          
      <parameters> 
       <lng>lng</lng> 
       <lat>lat</lat> 
       <address>address</address> 
      </parameters> 
     </config> 
    </TCEforms> 
</settings.map> 

ところで、あなたは\

で名前空間を開始する必要があります
関連する問題