function CurrentDateContext::__construct

Constructs a new CurrentDateContext.

Parameters

\Drupal\Component\Datetime\TimeInterface $datetime: The datetime.time service.

File

src/ContextProvider/CurrentDateContext.php, line 30

Class

CurrentDateContext
Sets the current node as a context on node routes.

Namespace

Drupal\rules\ContextProvider

Code

public function __construct(TimeInterface $datetime) {
    $this->datetime = $datetime;
}