Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

GraphQl-45: Product textarea field format #186

Merged

Conversation

VitaliyBoyko
Copy link
Contributor

Description

PROTOTYPE OF FIELD FORMAT STRATEGY

Fixed Issues (if relevant)

  1. Enable GraphQL text fields to contain WYSIWYG/Pagebuilder content (as complex object) #45: Enable GraphQL text fields to contain WYSIWYG/Pagebuilder content (as complex object)

Signed-off-by: vitaliyboyko <v.boyko@atwix.com>
Signed-off-by: vitaliyboyko <v.boyko@atwix.com>
*/
public function create(string $formatIdentifier, $data = []) : FormatInterface
{
$formatClassName = 'Magento\CatalogGraphQl\Model\Resolver\Product\ProductTextareaAttribute\\' . ucfirst($formatIdentifier);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The temporary solution just to show idea.
I'm about to move class name mapping into di.xml .

vitaliyboyko added 2 commits September 22, 2018 10:27
…ormat' of https://github.com/magento/graphql-ce into graphQl-44-product-textarea-field-format

Signed-off-by: vitaliyboyko <v.boyko@atwix.com>

Conflicts:
	app/code/Magento/CatalogGraphQl/Model/Resolver/Product/ProductTextareaAttribute.php
Signed-off-by: vitaliyboyko <v.boyko@atwix.com>
vitaliyboyko added 2 commits September 26, 2018 15:54
…nto graphQl-44-product-textarea-field-format
Signed-off-by: vitaliyboyko <v.boyko@atwix.com>
@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Sep 26, 2018

CLA assistant check
All committers have signed the CLA.

@VitaliyBoyko VitaliyBoyko changed the base branch from rendered-attributes-product to 2.3-develop September 26, 2018 16:37
@@ -63,6 +63,13 @@
<argument name="collectionProcessor" xsi:type="object">Magento\Catalog\Model\Api\SearchCriteria\ProductCollectionProcessor</argument>
</arguments>
</type>
<type name="Magento\CatalogGraphQl\Model\Resolver\Product\ProductTextAttribute\FormatList">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like unused.

use Magento\Catalog\Helper\Output as OutputHelper;

/**
* Resolve rendered content for attributes where HTML content is allowed
*/
class ProductHtmlAttribute implements ResolverInterface
class ProductTextAttribute implements ResolverInterface
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about ProductTextAttribute => ProductComplextTextAttribute?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, agree.

@@ -0,0 +1,38 @@
<?php
/**
* @author Atwix Team
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change the copyright

-- Update benchmarks scenarios according to updated GraphQL Schema
-- Update benchmarks scenarios according to updated GraphQL Schema
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants