public function TawkToConditionPluginsHandler::checkAccess in Tawk.to - Live chat application (Drupal 8) 8
Same name and namespace in other branches
- 8.2 src/Service/TawkToConditionPluginsHandler.php \Drupal\tawk_to\Service\TawkToConditionPluginsHandler::checkAccess()
File
- src/
Service/ TawkToConditionPluginsHandler.php, line 70
Class
- TawkToConditionPluginsHandler
- Defines the condition plugins handler.
Namespace
Drupal\tawk_to\ServiceCode
public function checkAccess() {
$conditions = [];
if (!empty($this->tawkToVisibility)) {
$conditions = $this
->getConditions();
return $this
->resolveConditions($conditions, 'and');
}
return TRUE;
}