public function NodeRevisionGenerate::__construct in Node Revision Delete 8
Constructor.
Parameters
\Drupal\Component\Datetime\TimeInterface $time: The date time instance.
\Drupal\Core\Database\Connection $connection: The database connection.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation.
File
- modules/
node_revision_generate/ src/ NodeRevisionGenerate.php, line 44
Class
- NodeRevisionGenerate
- Class NodeRevisionGenerate.
Namespace
Drupal\node_revision_generateCode
public function __construct(TimeInterface $time, Connection $connection, TranslationInterface $string_translation) {
$this->time = $time;
$this->connection = $connection;
$this->stringTranslation = $string_translation;
}