Skip to content

Commit 903969c

Browse files
committed
MC-3103: Custom Product Attributes with FullWidth Page Layout
- Resolve CR comments, update shouldDisplay function to isVisibleOnFrontend
1 parent 498cfaa commit 903969c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/Block/Product/View/Attributes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function getAdditionalData(array $excludeAttr = [])
7979
$product = $this->getProduct();
8080
$attributes = $product->getAttributes();
8181
foreach ($attributes as $attribute) {
82-
if ($this->shouldDisplay($attribute, $excludeAttr)) {
82+
if ($this->isVisibleOnFrontend($attribute, $excludeAttr)) {
8383
$value = $attribute->getFrontend()->getValue($product);
8484

8585
if ($value instanceof Phrase) {
@@ -107,7 +107,7 @@ public function getAdditionalData(array $excludeAttr = [])
107107
* @param array $excludeAttr
108108
* @return bool
109109
*/
110-
protected function shouldDisplay(
110+
protected function isVisibleOnFrontend(
111111
\Magento\Eav\Model\Entity\Attribute\AbstractAttribute $attribute,
112112
array $excludeAttr
113113
) {

0 commit comments

Comments
 (0)