Multistore.php 840 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Backend\Block\Widget\Grid\Column;
  7. /**
  8. * Grid column block that is displayed only in multistore mode
  9. *
  10. * @api
  11. * @deprecated 100.2.0 in favour of UI component implementation
  12. * @since 100.0.2
  13. */
  14. class Multistore extends \Magento\Backend\Block\Widget\Grid\Column
  15. {
  16. /**
  17. * @param \Magento\Backend\Block\Template\Context $context
  18. * @param array $data
  19. */
  20. public function __construct(\Magento\Backend\Block\Template\Context $context, array $data = [])
  21. {
  22. parent::__construct($context, $data);
  23. }
  24. /**
  25. * Get header css class name
  26. *
  27. * @return string
  28. */
  29. public function isDisplayed()
  30. {
  31. return !$this->_storeManager->isSingleStoreMode();
  32. }
  33. }