'install' =>
[ 'theme' => 'claro',
],
],
];
// File API functions are not available yet.
$path =
$this->root . DIRECTORY_SEPARATOR .
$this->siteDirectory . '/profiles/my_distro';
mkdir($path, 0777, TRUE
);
file_put_contents("
$path/my_distro.info.yml", Yaml::
encode($this->info
));
// Place a custom local translation in the translations directory.
mkdir($this->root . '/' .
$this->siteDirectory . '/files/translations', 0777, TRUE
);
file_put_contents($this->root . '/' .
$this->siteDirectory . '/files/translations/drupal-8.0.0.de.po',
$this->
getPo('de'
));
file_put_contents($this->root . '/' .
$this->siteDirectory . '/files/translations/drupal-8.0.0.fr.po',
$this->
getPo('fr'
));
} /**
* {@inheritdoc}
*/
protected function visitInstaller() { // Pass a different language code than the one set in the distribution
// profile. This distribution language should still be used.
// The unrouted URL assembler does not exist at this point, so we build the
// URL ourselves.