public static function Agreement::getDefaultSettings in Agreement 3.0.x
Same name and namespace in other branches
- 8.2 src/Entity/Agreement.php \Drupal\agreement\Entity\Agreement::getDefaultSettings()
Provides default keys for settings.
@internal
Return value
array Default keys and values for settings array.
3 calls to Agreement::getDefaultSettings()
- Agreement::getSettings in src/
Entity/ Agreement.php - Returns the settings as an array.
- AgreementTest::frequencyTimestampProvider in tests/
src/ Unit/ Entity/ AgreementTest.php - Provides various settings and expected values.
- AgreementTest::settingsProvider in tests/
src/ Unit/ Entity/ AgreementTest.php - Provides various settings arrays for tests.
File
- src/
Entity/ Agreement.php, line 153
Class
- Agreement
- Describes an agreement configuration.
Namespace
Drupal\agreement\EntityCode
public static function getDefaultSettings() {
return [
'frequency' => -1,
'title' => '',
'format' => '',
'submit' => '',
'checkbox' => '',
'success' => '',
'revoked' => '',
'failure' => '',
'destination' => '',
'recipient' => '',
'roles' => [],
'reset_date' => 0,
'visibility' => [
'settings' => -1,
'pages' => [],
],
];
}