private static function Redirects::newRedirect in Hook Update Deploy Tools 8
Same name and namespace in other branches
- 7 src/Redirects.php \HookUpdateDeployTools\Redirects::newRedirect()
Create an empty redirect object.
Return value
object Empty redirect object.
1 call to Redirects::newRedirect()
- Redirects::parseList in src/
Redirects.php - Create redirects from a list of redirects.
File
- src/
Redirects.php, line 86
Class
- Redirects
- Public methods for importing redirects.
Namespace
HookUpdateDeployToolsCode
private static function newRedirect() {
$empty_redirect = new \stdClass();
$empty_redirect->type = 'redirect';
$empty_redirect->redirect = '';
$empty_redirect->redirect_options = array();
$empty_redirect->source = '';
$empty_redirect->source_options = array();
$empty_redirect->language = LANGUAGE_NONE;
$empty_redirect->rid = NULL;
$empty_redirect->uid = $GLOBALS['user']->uid;
$empty_redirect->status_code = 0;
$empty_redirect->count = 0;
$empty_redirect->access = 0;
$empty_redirect->hash = '';
return $empty_redirect;
}