You are here

HostingDeployNode.inc in Aegir Deploy 7.3

The HostingDeployNode class.

File

includes/HostingDeployNode.inc
View source
<?php

/**
 * @file
 * The HostingDeployNode class.
 */
class HostingDeployNode extends HostingNode {
  protected $info_fields = [
    'field_deployment_strategy',
  ];
  public function nodeView() {
    parent::nodeView();
    $strategies = HostingDeployForm::getStrategyLabels();
    if ($strategy = $this
      ->getFieldValue('field_deployment_strategy')) {
      $this->node->content['info']['field_deployment_strategy']['#markup'] = $strategies[$strategy];
    }
  }

}

Classes

Namesort descending Description
HostingDeployNode @file The HostingDeployNode class.