->addConstraint('Callback', [
'callback' => function ($value, ExecutionContextInterface $context) {
$context->addViolation('test violation: ' . $value);
- }
+ },
])
);
$typed_data->setValue('foo');
$options = [
'callback' => function ($value, ExecutionContextInterface $context) {
$context->addViolation('test violation');
- }
+ },
];
$typed_data = $this->typedDataManager->create(
DataDefinition::create('string')
'value' => [
'key1' => 'value1',
'key2' => 'value2',
- 'key_with_properties' => $subkey_value
+ 'key_with_properties' => $subkey_value,
],
];
$tree['properties'] = [