Category.php 662 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Google Optimizer Category Block
  4. *
  5. * Copyright © Magento, Inc. All rights reserved.
  6. * See COPYING.txt for license details.
  7. */
  8. namespace Magento\GoogleOptimizer\Block\Code;
  9. /**
  10. * @api
  11. * @since 100.0.2
  12. */
  13. class Category extends \Magento\GoogleOptimizer\Block\AbstractCode implements
  14. \Magento\Framework\DataObject\IdentityInterface
  15. {
  16. /**
  17. * @var string Entity name in registry
  18. */
  19. protected $_registryName = 'current_category';
  20. /**
  21. * Return identifiers for produced content
  22. *
  23. * @return array
  24. */
  25. public function getIdentities()
  26. {
  27. return $this->_getEntity()->getIdentities();
  28. }
  29. }