You are here

public function SystemTable::moduleSetWeight in X Autoload 7.5

Parameters

string $name:

int $weight:

Throws

\Exception

File

tests/src/VirtualDrupal/SystemTable.php, line 324

Class

SystemTable
Virtual Drupal database / persistence layer.

Namespace

Drupal\xautoload\Tests\VirtualDrupal

Code

public function moduleSetWeight($name, $weight) {
  if (!isset($this->systemTableData[$name])) {
    throw new \Exception("Unknown module '{$name}'.");
  }
  $this->systemTableData[$name]['weight'] = $weight;
}