X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fcrop%2Fconfig%2Fschema%2Fcrop.schema.yml;fp=web%2Fmodules%2Fcontrib%2Fcrop%2Fconfig%2Fschema%2Fcrop.schema.yml;h=cf2ea7008d9fd36c330cd881fb33cbd33d496fd2;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/modules/contrib/crop/config/schema/crop.schema.yml b/web/modules/contrib/crop/config/schema/crop.schema.yml new file mode 100644 index 000000000..cf2ea7008 --- /dev/null +++ b/web/modules/contrib/crop/config/schema/crop.schema.yml @@ -0,0 +1,57 @@ +crop.type.*: + type: config_entity + label: 'Crop type' + mapping: + label: + type: label + label: 'Name' + id: + type: string + label: 'Machine-readable name' + description: + type: text + label: 'Description' + aspect_ratio: + type: string + label: 'Aspect ratio' + soft_limit_width: + type: integer + label: 'Soft limit width' + soft_limit_height: + type: integer + label: 'Soft limit height' + hard_limit_width: + type: integer + label: 'Hard limit width' + hard_limit_height: + type: integer + label: 'Hard limit height' + third_party_settings: + type: sequence + label: 'Third party settings' + sequence: + type: crop_type.third_party.[%key] + +media_entity.bundle.third_party.crop: + type: mapping + label: 'Crop settings' + mapping: + image_field: + type: string + label: 'Field storing image to be cropped' + +image.effect.crop_crop: + type: mapping + label: 'Crop effect configuration' + mapping: + crop_type: + label: 'Crop type' + type: string + +crop.settings: + type: config_object + label: 'Crop API settings' + mapping: + flush_derivative_images: + type: boolean + label: 'Indicates whether to flush image derivatives when a crop entity is change'