From 82389e65a87f91c9b3ae44f02b03d85ec9ef6bc5 Mon Sep 17 00:00:00 2001 From: Steven Schulz Date: Wed, 11 Oct 2017 08:48:43 +0000 Subject: [PATCH] feature/INREL-1445 submodule for imagepin --- PATCHES.txt | 7 +++ .../infinite_imagepin.info.yml | 7 +++ .../infinite_imagepin.module | 25 +++++++++ .../Plugin/imagepin/Widget/ProductWidget.php | 51 +++++++++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 PATCHES.txt create mode 100644 modules/infinite_imagepin/infinite_imagepin.info.yml create mode 100644 modules/infinite_imagepin/infinite_imagepin.module create mode 100755 modules/infinite_imagepin/src/Plugin/imagepin/Widget/ProductWidget.php diff --git a/PATCHES.txt b/PATCHES.txt new file mode 100644 index 0000000..6e95852 --- /dev/null +++ b/PATCHES.txt @@ -0,0 +1,7 @@ +This file was automatically generated by Composer Patches (https://github.com/cweagans/composer-patches) +Patches applied to this directory: + +add shop the look +Source: https://patch-diff.githubusercontent.com/raw/BurdaMagazinOrg/infinite-module/pull/49.diff + + diff --git a/modules/infinite_imagepin/infinite_imagepin.info.yml b/modules/infinite_imagepin/infinite_imagepin.info.yml new file mode 100644 index 0000000..bccd123 --- /dev/null +++ b/modules/infinite_imagepin/infinite_imagepin.info.yml @@ -0,0 +1,7 @@ +name: Infinite Imagepin +type: module +description: Impagepin related customizations +core: 8.x +package: Infinite +dependencies: + - imagepin \ No newline at end of file diff --git a/modules/infinite_imagepin/infinite_imagepin.module b/modules/infinite_imagepin/infinite_imagepin.module new file mode 100644 index 0000000..375b0cd --- /dev/null +++ b/modules/infinite_imagepin/infinite_imagepin.module @@ -0,0 +1,25 @@ + 'entity_autocomplete', + '#target_type' => 'advertising_product', + '#title' => t('Product'), + '#required' => FALSE, + '#weight' => 10, + ]; + + return $element; + } + + /** + * {@inheritdoc} + */ + public function previewContent($value) { + return ['#markup' => '

xxx' . $value['product'] . '

']; + } + + /** + * {@inheritdoc} + */ + public function viewContent($value) { + return ['#markup' => '

xxcd' . $value['product'] . '

']; + } + +}