You are here

protected function HostingPlatformComposerForm::setPublishPath in Aegir Deploy 7.3

1 call to HostingPlatformComposerForm::setPublishPath()
HostingPlatformComposerForm::submit in modules/platform_composer/includes/HostingPlatformComposerForm.inc

File

modules/platform_composer/includes/HostingPlatformComposerForm.inc, line 61
The HostingPlatformComposerForm class.

Class

HostingPlatformComposerForm
@file The HostingPlatformComposerForm class.

Code

protected function setPublishPath() {
  if (!empty($this
    ->getFormStateValue('field_composer_project_docroot'))) {
    $publish_path = $this
      ->getFormStateValue('field_composer_project_path') . '/' . $this
      ->getFormStateValue('field_composer_project_docroot');
    $this
      ->setFormStateValue('publish_path', $publish_path);
  }
}