public function getBodyData($body) {
    $module_path = $this->moduleHandler->getModule('govcms8_default_content')->getPath();
    if (!empty($body)) {
      if (is_array($body) && !empty($body['file'])) {
        $file = $body['file'];
        $body_path = $module_path . '/import/html_body/' . $file;
        $body_html = file_get_contents($body_path);
        if ($body_html !== FALSE) {
          return $body_html;
        }
      }
      else {
        return $body;
      }
    }
  }
public function getBodyData($body) {
    $module_path = $this->moduleHandler->getModule('govcms8_default_content')->getPath();
    if (!empty($body)) {
      if (is_array($body) && !empty($body['file'])) {
        $file = $body['file'];
        $body_path = $module_path . '/import/html_body/' . $file;
        $body_html = file_get_contents($body_path);
        if ($body_html !== FALSE) {
          return $body_html;
        }
      }
      else {
        return $body;
      }
    }
  }
public function getBodyData ( $ body ) { $ module_path = $ this -> moduleHandler -> getModule ( 'govcms8_default_content' ) -> getPath ( ) ; if ( ! empty ( $ body ) ) { if ( is_array ( $ body ) && ! empty ( $ body [ 'file' ] ) ) { $ file = $ body [ 'file' ] ; $ body_path = $ module_path . '/import/html_body/' . $ file ; $ body_html = file_get_contents ( $ body_path ) ; if ( $ body_html !== FALSE ) { return $ body_html ; } } else { return $ body ; } } }
Retrieves the body data from the array value or an HTML file.

@param mixed $body
Body field.

@return mixed
An array of data.
Retrieves the body data from the array value or an HTML file .