Module exposing: NewProduct
// Source: https://github.com/magento/magento2 | License: OSL-3.0 | Modified files must remain under OSL-3.0
// Modifications to this file must remain under OSL-3.0.
// Provided via justclaw.it.com; keep this notice with the code.
<?php
/**
* Copyright 2013 Adobe
* All Rights Reserved.
*/
namespace Magento\Catalog\Block\Product;
use Magento\Customer\Model\Context as CustomerContext;
/**
* New products block
*
* @SuppressWarnings(PHPMD.LongVariable)
*/
class NewProduct extends \Magento\Catalog\Block\Product\AbstractProduct implements
\Magento\Framework\DataObject\IdentityInterface
{
/**
* Default value for products count that will be shown
*/
public const DEFAULT_PRODUCTS_COUNT = 10;
/**
* Block cache tag
*/
public const CACHE_TAG = 'cat_p_n
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key