Browse Source

First pass at image bundles (#53)

* First pass at image bundles

* Update composer.json

* Update islandora.info.yml

* Apparantly 2 and 6 are not the same number.

* Pre pull commit

* Getting rid of token dsm
pull/756/head
dannylamb 8 years ago committed by Nick Ruest
parent
commit
f6fb6d2f04
  1. 3
      composer.json
  2. 23
      config/install/field.storage.fedora_resource.field_obj.yml
  3. 33
      config/install/field.storage.media.field_image.yml
  4. 1
      islandora.info.yml
  5. 5
      tests/src/Kernel/IslandoraKernelTestBase.php

3
composer.json

@ -20,7 +20,8 @@
"drupal/search_api": "^1.0@beta",
"islandora/claw-jsonld": "dev-8.x-1.x",
"stomp-php/stomp-php": "4.*",
"drupal/jwt": "1.0.0-alpha6"
"drupal/jwt": "1.0.0-alpha6",
"drupal/media_entity_image": "^1.2"
},
"require-dev": {
"phpunit/phpunit": "^4.8",

23
config/install/field.storage.fedora_resource.field_obj.yml

@ -0,0 +1,23 @@
uuid: d31f7746-57f6-4081-973e-da400b1e51d1
langcode: en
status: true
dependencies:
enforced:
module:
- islandora
module:
- islandora
- media_entity
id: fedora_resource.field_obj
field_name: field_obj
entity_type: fedora_resource
type: entity_reference
settings:
target_type: media
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

33
config/install/field.storage.media.field_image.yml

@ -0,0 +1,33 @@
uuid: 864f50f8-57b5-4a43-80f9-7548b1dc0196
langcode: en
status: true
dependencies:
enforced:
module:
- islandora
module:
- file
- image
- media_entity
id: media.field_image
field_name: field_image
entity_type: media
type: image
settings:
uri_scheme: public
default_image:
uuid: ''
alt: ''
title: ''
width: null
height: null
target_type: file
display_field: false
display_default: false
module: image
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

1
islandora.info.yml

@ -16,3 +16,4 @@ dependencies:
- rules
- search_api
- jwt
- media_entity_image

5
tests/src/Kernel/IslandoraKernelTestBase.php

@ -32,6 +32,11 @@ abstract class IslandoraKernelTestBase extends KernelTestBase {
'views',
'key',
'jwt',
'file',
'entity',
'image',
'media_entity',
'media_entity_image',
'islandora',
];

Loading…
Cancel
Save