constant AgreementTest::DEFAULT_AGREEMENT_SETTINGS in Agreement 3.0.x
Same name and namespace in other branches
- 8.2 tests/src/Unit/Entity/AgreementTest.php \Drupal\Tests\agreement\Unit\Entity\AgreementTest::DEFAULT_AGREEMENT_SETTINGS
Default agreement settings from agreement.agreement.default.
@todo Add visibility in Drupal 9 when PHP 5 is non-supported.
@internal
File
- tests/
src/ Unit/ Entity/ AgreementTest.php, line 22
Class
- AgreementTest
- Tests methods on the agreement entity.
Namespace
Drupal\Tests\agreement\Unit\EntityCode
const DEFAULT_AGREEMENT_SETTINGS = [
'visibility' => [
'settings' => 0,
'pages' => [],
],
'roles' => [
'authenticated',
],
'frequency' => -1,
'title' => 'Our Agreement',
'checkbox' => 'I agree.',
'submit' => 'Submit',
'success' => 'Thank you for accepting our agreement.',
'revoked' => 'You have successfully revoked your acceptance of our agreement.',
'failure' => 'You must accept our agreement to continue.',
'destination' => '',
'recipient' => '',
'reset_date' => 0,
'format' => 'plain_text',
];