You are here

public function ConfigHandler::loadUpdate in Update helper 8

Same name and namespace in other branches
  1. 2.x src/ConfigHandler.php \Drupal\update_helper\ConfigHandler::loadUpdate()

Load update definition from file.

Parameters

string $module_name: Module name.

string $update_name: Update name.

Return value

mixed Returns update definition.

File

src/ConfigHandler.php, line 401

Class

ConfigHandler
Configuration handler.

Namespace

Drupal\update_helper

Code

public function loadUpdate($module_name, $update_name) {
  return $this->serializer
    ->decode(file_get_contents($this
    ->getPatchFile($module_name, $update_name)));
}