Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
attribute.phtml File Reference

Go to the source code of this file.

Variables

 $_helper = $this->helper('Magento\Catalog\Helper\Output')
 
 $_product = $block->getProduct()
 
 $_call = $block->getAtCall()
 
 $_code = $block->getAtCode()
 
 $_className = $block->getCssClass()
 
 $_attributeLabel = $block->getAtLabel()
 
 $_attributeType = $block->getAtType()
 
 $_attributeAddAttribute = $block->getAddAttribute()
 
 $renderLabel = true
 
if($_attributeLabel=='none') if($_attributeLabel && $_attributeLabel=='default') if($_attributeType && $_attributeType=='text') else
 
if( $_attributeValue)($renderLabel) endif = $_attributeValue
 

Variable Documentation

◆ $_attributeAddAttribute

$_attributeAddAttribute = $block->getAddAttribute()

Definition at line 23 of file attribute.phtml.

◆ $_attributeLabel

$_attributeLabel = $block->getAtLabel()

Definition at line 21 of file attribute.phtml.

◆ $_attributeType

$_attributeType = $block->getAtType()

Definition at line 22 of file attribute.phtml.

◆ $_call

$_call = $block->getAtCall()

Definition at line 18 of file attribute.phtml.

◆ $_className

$_className = $block->getCssClass()

Definition at line 20 of file attribute.phtml.

◆ $_code

$_code = $block->getAtCode()

Definition at line 19 of file attribute.phtml.

◆ $_helper

$_helper = $this->helper('Magento\Catalog\Helper\Output')

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.Product view template

See also
\Magento\Catalog\Block\Product\View\Description

Definition at line 16 of file attribute.phtml.

◆ $_product

$_product = $block->getProduct()

Definition at line 17 of file attribute.phtml.

◆ $renderLabel

$renderLabel = true

Definition at line 25 of file attribute.phtml.

◆ else

if ( $_attributeLabel=='none') if ( $_attributeLabel &&$_attributeLabel=='default') if ( $_attributeType &&$_attributeType=='text') else
Initial value:
{
$_attributeValue = $_helper->productAttribute($_product, $_product->$_call(), $_code)
$_product
Definition: attribute.phtml:17
$_code
Definition: attribute.phtml:19
$_helper
Definition: attribute.phtml:16

Definition at line 36 of file attribute.phtml.

◆ endif

if ($_attributeValue) ( $renderLabel) endif = $_attributeValue

Definition at line 44 of file attribute.phtml.