You are here

protected function HostingPlatformComposerGitForm::setPublishPath in Aegir Deploy 7.3

1 call to HostingPlatformComposerGitForm::setPublishPath()
HostingPlatformComposerGitForm::submit in modules/platform_composer_git/includes/HostingPlatformComposerGitForm.inc

File

modules/platform_composer_git/includes/HostingPlatformComposerGitForm.inc, line 61
The HostingPlatformComposerGitForm class.

Class

HostingPlatformComposerGitForm
@file The HostingPlatformComposerGitForm class.

Code

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