private function SplashifyInjection::findSplash in Splashify 8.2
Choosing an entity which will be displayed.
Return value
SplashifyEntity|null Splash that passes all conditions and has the biggest weight.
1 call to SplashifyInjection::findSplash()
- SplashifyInjection::isSplashExist in src/
Service/ SplashifyInjection.php - Check is splash exist. If exist then remembered.
File
- src/
Service/ SplashifyInjection.php, line 112
Class
- SplashifyInjection
- Class SplashifyInjection.
Namespace
Drupal\splashify\ServiceCode
private function findSplash() {
$splashes = $this
->getSplashes();
// Check which item need display.
foreach ($splashes as $splash) {
if ($this
->checkFrequency($splash)) {
return $splash;
}
}
return NULL;
}