trait NodeRevisionGenerateTestTrait in Node Revision Delete 8
Trait for common test functions.
Hierarchy
- trait \Drupal\Tests\node_revision_generate\Traits\NodeRevisionGenerateTestTrait
2 files declare their use of NodeRevisionGenerateTestTrait
- NodeRevisionGenerateTest.php in modules/
node_revision_generate/ tests/ src/ Functional/ NodeRevisionGenerateTest.php - NodeRevisionGenerateTest.php in modules/
node_revision_generate/ tests/ src/ Unit/ NodeRevisionGenerateTest.php
File
- modules/
node_revision_generate/ tests/ src/ Traits/ NodeRevisionGenerateTestTrait.php, line 8
Namespace
Drupal\Tests\node_revision_generate\TraitsView source
trait NodeRevisionGenerateTestTrait {
/**
* Returns the revisions age array.
*
* @return array
* The revisions age.
*/
public function getRevisionAge() {
return [
86400,
604800,
2592000,
86400,
604800,
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NodeRevisionGenerateTestTrait:: |
public | function | Returns the revisions age array. |