You are here

public function NodeRevisionDeleteInterface::updateTimeMaxNumberConfig in Node Revision Delete 8

Update the max_number for a config name.

We need to update the max_number in the existing content type configuration if the new value (max_number) is lower than the actual, in this case the new value will be the value for the content type.

Parameters

string $config_name: Config name to update (when_to_delete or minimum_age_to_delete).

int $max_number: The maximum number for $config_name parameter.

1 method overrides NodeRevisionDeleteInterface::updateTimeMaxNumberConfig()
NodeRevisionDelete::updateTimeMaxNumberConfig in src/NodeRevisionDelete.php
Update the max_number for a config name.

File

src/NodeRevisionDeleteInterface.php, line 24

Class

NodeRevisionDeleteInterface
Interface NodeRevisionDeleteInterface.

Namespace

Drupal\node_revision_delete

Code

public function updateTimeMaxNumberConfig($config_name, $max_number);