moduleLoadInclude example

/** * {@inheritdoc} */
  public function loadInclude($module$type$name = NULL) {
    if (!isset($name)) {
      $name = $module;
    }
    $build_info = $this->getBuildInfo();
    if (!isset($build_info['files']["$module:$name.$type"])) {
      // Only add successfully included files to the form state.       if ($result = $this->moduleLoadInclude($module$type$name)) {
        $build_info['files']["$module:$name.$type"] = [
          'type' => $type,
          'module' => $module,
          'name' => $name,
        ];
        $this->setBuildInfo($build_info);
        return $result;
      }
    }
    return FALSE;
  }

  
Home | Imprint | This part of the site doesn't use cookies.