You are here

public function TawkToConditionPluginsHandler::checkAccess in Tawk.to - Live chat application (Drupal 8) 8

Same name and namespace in other branches
  1. 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\Service

Code

public function checkAccess() {
  $conditions = [];
  if (!empty($this->tawkToVisibility)) {
    $conditions = $this
      ->getConditions();
    return $this
      ->resolveConditions($conditions, 'and');
  }
  return TRUE;
}