Commit c22c5d39 authored by webchick's avatar webchick

Issue #2086535 by Gábor Hojtsy: Add entity changed constraint validation to custom blocks.

parent 1bba30a7
......@@ -266,7 +266,7 @@ public static function baseFieldDefinitions($entity_type) {
);
$properties['langcode'] = array(
'label' => t('Language code'),
'description' => t('The comment language code.'),
'description' => t('The custom block language code.'),
'type' => 'language_field',
);
$properties['info'] = array(
......@@ -288,6 +288,9 @@ public static function baseFieldDefinitions($entity_type) {
'label' => t('Changed'),
'description' => t('The time that the custom block was last edited.'),
'type' => 'integer_field',
'property_constraints' => array(
'value' => array('EntityChanged' => array()),
),
);
return $properties;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment