mirror of
https://github.com/flextype/flextype.git
synced 2025-08-11 23:54:06 +02:00
Flextype Core: Entries - new method rename() - added.
This commit is contained in:
@@ -282,6 +282,18 @@ class Entries
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename entry.
|
||||
*
|
||||
* @param string $entry Entry
|
||||
* @param string $new_entry New entry
|
||||
* @return bool True on success, false on failure.
|
||||
*/
|
||||
public static function rename(string $entry, string $new_entry) : bool
|
||||
{
|
||||
return rename($entry, $new_entry);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update entry
|
||||
*
|
||||
|
Reference in New Issue
Block a user