public function hostingService::view

7.x-3.x hosting_server.service.inc public hostingService::view(&$render)

File

server/hosting_server.service.inc, line 141
Define the base Hosting service class.

Class

hostingService

Code

public function view(&$render) {
  if ($this->has_restart_cmd) {
    $render['restart_cmd'] = array(
      '#type' => 'item',
      '#title' => t('Restart command'),
      '#markup' => filter_xss($this->restart_cmd),
    );

  }

  if ($this->has_port) {
    $render['port'] = array(
      '#type' => 'item',
      '#title' => t('Port'),
      '#markup' => filter_xss($this->port),
    );
  }
}