他の答えは正しいですが、推奨/適切な解決策でもありません。
ObjectManagerの使用はMagento 2では絶対に禁止されています。したがって、このソリューションに頼るのではなく、代わりに適切なDIを使用してこれを達成してください。Magento 2でDIを使用する方法については、次のリソースを参照してください:http : //devdocs.magento.com/guides/v2.0/extension-dev-guide/depend-inj.html
AbstractViewを拡張する必要はありません。AbstractViewで元の関数を見ると、Magentoがレジストリを使用して製品を取得したことがわかります。これを行うために特定のクラスを拡張する必要はありません。Magento\ Framework \ Registryをコンストラクターに挿入し、「製品」レジストリ項目を要求するだけです。
完全なコード例:
<?php
// Example = Module namespace, Module = module name, rest of the namespace is just for example only, change this to whatever it is in your case.
namespace Example\Module\Block\Frontend\Catalog\Product\General;
use Magento\Catalog\Model\Product;
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\Registry;
use Magento\Framework\View\Element\Template;
class Information extends Template
{
    /**
     * @var Registry
     */
    protected $registry;
    /**
     * @var Product
     */
    private $product;
    public function __construct(Template\Context $context,
                                Registry $registry,
                                array $data)
    {
        $this->registry = $registry;
        parent::__construct($context, $data);
    }
    /**
     * @return Product
     */
    private function getProduct()
    {
        if (is_null($this->product)) {
            $this->product = $this->registry->registry('product');
            if (!$this->product->getId()) {
                throw new LocalizedException(__('Failed to initialize product'));
            }
        }
        return $this->product;
    }
    public function getProductName()
    {
        return $this->getProduct()->getName();
    }
}
               
              
getProduct()を呼び出すことができますMagento\Catalog\Block\Product\View