Function Block_main_staff_links->install
Definitions
sources/blocks/main_staff_links.php
- Install the block.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$upgrade_from | ?integer | No | No | Null | N/A | N/A | What version we're upgrading from (null: new install) |
$upgrade_from_hack | ?integer | No | No | Null | N/A | N/A | What hack version we're upgrading from (null: new-install/not-upgrading-from-a-hacked-version) |
Preview
Code (PHP)
/**
* Install the block.
*
* @param ?integer $upgrade_from What version we're upgrading from (null: new install)
* @param ?integer $upgrade_from_hack What hack version we're upgrading from (null: new-install/not-upgrading-from-a-hacked-version)
*/
public function install(?int $upgrade_from = null, ?int $upgrade_from_hack = null)
* Install the block.
*
* @param ?integer $upgrade_from What version we're upgrading from (null: new install)
* @param ?integer $upgrade_from_hack What hack version we're upgrading from (null: new-install/not-upgrading-from-a-hacked-version)
*/
public function install(?int $upgrade_from = null, ?int $upgrade_from_hack = null)