Generator/Info8.php
function file_body() {
    $args = func_get_args();
    $files = array_shift($args);

    $module_data = $this->component_data;
    //print_r($module_data);

    $lines = array();
    $lines['name'] = $module_data['readable_name'];
    $lines['type'] = $module_data['base'];
    $lines['description'] = $module_data['short_description'];
    if (!empty($module_data['module_dependencies'])) {
      // For lines which form a set with the same key and array markers,
      // simply make an array.
      foreach ($module_data['module_dependencies'] as $dependency) {
        $lines['dependencies'][] = $dependency;
      }
    }

    if (!empty($module_data['module_package'])) {
      $lines['package'] = $module_data['module_package'];
    }

    $lines['core'] = "8.x";

    if (!empty($this->extraLines)) {
      $lines = array_merge($lines, $this->extraLines);
    }

    $info = $this->process_info_lines($lines);
    return $info;
  }
function file_body() {
    $args = func_get_args();
    $files = array_shift($args);

    $module_data = $this->component_data;
    //print_r($module_data);

    $lines = array();
    $lines['name'] = $module_data['readable_name'];
    $lines['type'] = $module_data['base'];
    $lines['description'] = $module_data['short_description'];
    if (!empty($module_data['module_dependencies'])) {
      // For lines which form a set with the same key and array markers,
      // simply make an array.
      foreach ($module_data['module_dependencies'] as $dependency) {
        $lines['dependencies'][] = $dependency;
      }
    }

    if (!empty($module_data['module_package'])) {
      $lines['package'] = $module_data['module_package'];
    }

    $lines['core'] = "8.x";

    if (!empty($this->extraLines)) {
      $lines = array_merge($lines, $this->extraLines);
    }

    $info = $this->process_info_lines($lines);
    return $info;
  }
function file_body ( ) { $ args = func_get_args ( ) ; $ files = array_shift ( $ args ) ; $ module_data = $ this -> component_data ; //print_r($module_data); $ lines = array ( ) ; $ lines [ 'name' ] = $ module_data [ 'readable_name' ] ; $ lines [ 'type' ] = $ module_data [ 'base' ] ; $ lines [ 'description' ] = $ module_data [ 'short_description' ] ; if ( ! empty ( $ module_data [ 'module_dependencies' ] ) ) { // For lines which form a set with the same key and array markers, // simply make an array. foreach ( $ module_data [ 'module_dependencies' ] as $ dependency ) { $ lines [ 'dependencies' ] [ ] = $ dependency ; } } if ( ! empty ( $ module_data [ 'module_package' ] ) ) { $ lines [ 'package' ] = $ module_data [ 'module_package' ] ; } $ lines [ 'core' ] = "8.x" ; if ( ! empty ( $ this -> extraLines ) ) { $ lines = array_merge ( $ lines , $ this -> extraLines ) ; } $ info = $ this -> process_info_lines ( $ lines ) ; return $ info ; }
Create lines of file body for Drupal 8.
Create lines of file body for Drupal 8 .