public function SplashifyInjection::isSplashExist in Splashify 8.2
Check is splash exist. If exist then remembered.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The incoming request object.
Return value
bool The check result.
1 call to SplashifyInjection::isSplashExist()
- SplashifyInjection::getAttach in src/
Service/ SplashifyInjection.php - Returns render element.
File
- src/
Service/ SplashifyInjection.php, line 41
Class
- SplashifyInjection
- Class SplashifyInjection.
Namespace
Drupal\splashify\ServiceCode
public function isSplashExist(Request $request = NULL) {
// At the first check in the request no session. It should pass this check.
if (is_object($request) && !$request
->hasSession()) {
return TRUE;
}
if (!empty($this->splash)) {
return TRUE;
}
$this->splash = $this
->findSplash();
return !empty($this->splash);
}