Block.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Backend\Model\View\Layout\Reader;
  7. use Magento\Framework\View\Layout;
  8. use Magento\Framework\Data\Argument\InterpreterInterface;
  9. use Magento\Framework\View\Layout\Reader\Visibility\Condition;
  10. /**
  11. * Backend block structure reader with ACL support
  12. * @api
  13. * @since 100.0.2
  14. */
  15. class Block extends Layout\Reader\Block
  16. {
  17. /**
  18. * Initialize dependencies.
  19. *
  20. * @param Layout\ScheduledStructure\Helper $helper
  21. * @param Layout\Argument\Parser $argumentParser
  22. * @param Layout\ReaderPool $readerPool
  23. * @param InterpreterInterface $argumentInterpreter
  24. * @param Condition $conditionReader
  25. * @param string|null $scopeType
  26. */
  27. public function __construct(
  28. Layout\ScheduledStructure\Helper $helper,
  29. Layout\Argument\Parser $argumentParser,
  30. Layout\ReaderPool $readerPool,
  31. InterpreterInterface $argumentInterpreter,
  32. Condition $conditionReader,
  33. $scopeType = null
  34. ) {
  35. $this->attributes[] = 'acl';
  36. parent::__construct(
  37. $helper,
  38. $argumentParser,
  39. $readerPool,
  40. $argumentInterpreter,
  41. $conditionReader,
  42. $scopeType
  43. );
  44. }
  45. }