public function LinkExpiry::__construct in Preview Link 8
LinkExpiry constructor.
Parameters
\Drupal\Core\State\StateInterface $state: The state service.
File
- src/
LinkExpiry.php, line 32
Class
- LinkExpiry
- Calculates link expiry time.
Namespace
Drupal\preview_linkCode
public function __construct(StateInterface $state) {
$this->state = $state;
}