ForkCMS\Bundle\InstallerBundle\Entity\InstallationData::getDefaultLanguage PHP Method

getDefaultLanguage() public method

Gets the The default language for this Fork installation.
public getDefaultLanguage ( ) : string
return string
    public function getDefaultLanguage()
    {
        return $this->defaultLanguage;
    }

Usage Example

Example #1
0
 /**
  * @param  InstallationData $data
  * @return array A list of variables that will be used in installers.
  */
 protected function getInstallerData(InstallationData $data)
 {
     return array('default_language' => $data->getDefaultLanguage(), 'default_interface_language' => $data->getDefaultInterfaceLanguage(), 'spoon_debug_email' => $data->getEmail(), 'api_email' => $data->getEmail(), 'site_domain' => isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'fork.local', 'site_title' => 'Fork CMS', 'smtp_server' => '', 'smtp_port' => '', 'smtp_username' => '', 'smtp_password' => '', 'email' => $data->getEmail(), 'password' => $data->getPassword());
 }