You are here

public function NodeRevisionDeleteInterface::getRelativeTime in Node Revision Delete 8

Determine the time value for a node type and a variable type.

Parameters

string $config_name: The config name, can by minimum_age_to_delete or when_to_delete.

int $number: The number representing the variable type.

Return value

int The timestamp representing the relative time for the node type variable.

1 method overrides NodeRevisionDeleteInterface::getRelativeTime()
NodeRevisionDelete::getRelativeTime in src/NodeRevisionDelete.php
Determine the time value for a node type and a variable type.

File

src/NodeRevisionDeleteInterface.php, line 136

Class

NodeRevisionDeleteInterface
Interface NodeRevisionDeleteInterface.

Namespace

Drupal\node_revision_delete

Code

public function getRelativeTime($config_name, $number);