AbstractOptions.php 882 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Eav\Block\Adminhtml\Attribute\Edit\Options;
  7. /**
  8. * Attribute add/edit form options tab
  9. *
  10. * @api
  11. * @deprecated 101.0.0
  12. * @since 100.0.2
  13. */
  14. abstract class AbstractOptions extends \Magento\Framework\View\Element\AbstractBlock
  15. {
  16. /**
  17. * Preparing layout, adding buttons
  18. *
  19. * @return $this
  20. */
  21. protected function _prepareLayout()
  22. {
  23. $this->addChild('labels', \Magento\Eav\Block\Adminhtml\Attribute\Edit\Options\Labels::class);
  24. $this->addChild('options', \Magento\Eav\Block\Adminhtml\Attribute\Edit\Options\Options::class);
  25. return parent::_prepareLayout();
  26. }
  27. /**
  28. * {@inheritdoc}
  29. * @return string
  30. */
  31. protected function _toHtml()
  32. {
  33. return $this->getChildHtml();
  34. }
  35. }