diff --git a/README.md b/README.md index df8a5d59f325add6abb71f79a08a1d92c9eaa83c..a67aaaadd0d33037ceabd380a4fb6b3da79ae447 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Background Image Field +INTRODUCTION ---------------------- Background Image FIeld module allows you to create a field on an entity type. @@ -8,12 +8,14 @@ attach the background image too and then allow you basic CSS options repeat, size, and position so you can define a per image solution for your frontend needs. -### Dependencies +REQUIREMENTS +------------ - Token - Core: Responsive Images -### Similar Projects +SIMILAR PROJECTS +---------------- Formatters are used in the process of how fields are rendered. A formatter is an addition to how a field works and is not a field itself. Formatters @@ -35,12 +37,14 @@ Having this as a field also allows you a different way to apply it to content, query it in views, custom personalization per item created with it. -### Installation +INSTALLATION +------------ Install as you would any other drupal module. See more information [here](https://www.drupal.org/docs/8/extending-drupal-8/installing-drupal-8-modules). -### Configuration +CONFIGURATION +------------- 1. Create responsive image style /admin/config/media/responsive-image-style - The only responsive image style that will @@ -49,7 +53,8 @@ Install as you would any other drupal module. See more information 2. Add the field on an entity type such as node, paragraph_item or, custom entity. -### Troubleshooting +TROUBLESHOOTING +--------------- If you do not see the background image, please make sure to check that the CSS selector is actually apart of the HTML. @@ -60,7 +65,8 @@ If you don't see any available responsive image styles in the managed display setting on the entity type you will most likely need to create one following the outline configurations above. -Supporting organizations: +MAINTAINERS +----------- [The Tombras Group](https://www.drupal.org/the-tombras-group) diff --git a/src/Plugin/Field/.DS_Store b/src/Plugin/Field/.DS_Store deleted file mode 100644 index 501d9e9f29b3a27c2e3df23db95a3cc7ad18fca7..0000000000000000000000000000000000000000 Binary files a/src/Plugin/Field/.DS_Store and /dev/null differ diff --git a/src/Plugin/Field/FieldWidget/BgImageFieldWidget.php b/src/Plugin/Field/FieldWidget/BgImageFieldWidget.php index 30b0ef0a53c2245efc5639ea99bd0b497ab08856..d08107b3496b3d044e8851be865d5b20cc81d41a 100644 --- a/src/Plugin/Field/FieldWidget/BgImageFieldWidget.php +++ b/src/Plugin/Field/FieldWidget/BgImageFieldWidget.php @@ -97,7 +97,7 @@ class BgImageFieldWidget extends ImageWidget { $elements['css_settings'] = [ '#type' => 'details', '#title' => t('CSS Settings'), - '#description' => 'Set default CSS properties for the background image.', + '#description' => t('Set default CSS properties for the background image.'), '#open' => FALSE, ];