-
Notifications
You must be signed in to change notification settings - Fork 154
GraphQl-45: Product textarea field format #186
GraphQl-45: Product textarea field format #186
Conversation
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); |
There was a problem hiding this comment.
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 .
…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>
…nto graphQl-44-product-textarea-field-format
Signed-off-by: vitaliyboyko <v.boyko@atwix.com>
@@ -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"> |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about ProductTextAttribute
=> ProductComplextTextAttribute
?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the copyright
…duct-textarea-field-format
…:magento/graphql-ce into graphQl-44-product-textarea-field-format
…duct-textarea-field-format
-- Update benchmarks scenarios according to updated GraphQL Schema
-- Update benchmarks scenarios according to updated GraphQL Schema
Description
PROTOTYPE OF FIELD FORMAT STRATEGY
Fixed Issues (if relevant)