コード例 #1
0
ファイル: LocationContentType.php プロジェクト: ollietb/sulu
 /**
  * {@inheritdoc}
  */
 public function getDefaultParams(PropertyInterface $property = null)
 {
     // Need a service to provide countries, see: https://github.com/sulu-cmf/SuluContactBundle/issues/121
     return ['countries' => new PropertyParameter('countries', ['at' => new PropertyParameter('at', 'Austria'), 'fr' => new PropertyParameter('fr', 'France'), 'gb' => new PropertyParameter('gb', 'Great Britain')], 'collection'), 'mapProviders' => new PropertyParameter('mapProviders', $this->mapManager->getProvidersAsArray(), 'collection'), 'defaultProvider' => new PropertyParameter('defaultProvider', $this->mapManager->getDefaultProviderName()), 'geolocatorName' => new PropertyParameter('geolocatorName', $this->geolocatorName)];
 }
コード例 #2
0
ファイル: LocationContentType.php プロジェクト: sulu/sulu
 /**
  * {@inheritdoc}
  */
 public function getDefaultParams(PropertyInterface $property = null)
 {
     return ['countries' => new PropertyParameter('countries', $this->getCountries(), 'collection'), 'mapProviders' => new PropertyParameter('mapProviders', $this->mapManager->getProvidersAsArray(), 'collection'), 'defaultProvider' => new PropertyParameter('defaultProvider', $this->mapManager->getDefaultProviderName()), 'geolocatorName' => new PropertyParameter('geolocatorName', $this->geolocatorName)];
 }