class LinksModel (View source)

The links model.

Methods

static bool
update(Automad $Automad, string $old, string $new, string|null $dataFilePath = null)

Update all links to a page or file after renaming or moving content.

Details

static bool update(Automad $Automad, string $old, string $new, string|null $dataFilePath = null)

Update all links to a page or file after renaming or moving content.

Parameters

Automad $Automad
string $old
string $new
string|null $dataFilePath

Return Value

bool true on success