Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace Drupal\visitors;
4
5/**
6 * Interface for checking visitors visibility.
7 */
8interface VisitorsVisibilityInterface {
9
10  /**
11   * Path must not match to be tracked.
12   */
13  const PATH_EXCLUDE = 0;
14
15  /**
16   * Path must math to be tracked.
17   */
18  const PATH_INCLUDE = 1;
19
20  /**
21   * No customization allowed to the users.
22   */
23  const USER_NO_PERSONALIZATION = 0;
24
25  /**
26   * Customization allowed, tracking enabled by default.
27   */
28  const USER_OPT_OUT = 1;
29
30  /**
31   * Customization allowed, tracking disabled by default.
32   */
33  const USER_OPT_IN = 2;
34
35  /**
36   * Tracking visibility check.
37   *
38   * @return bool
39   *   TRUE if tracking is enabled for the current request, FALSE otherwise.
40   */
41  public function isVisible(): bool;
42
43}