Allowed.php 626 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Action validator for remove action
  4. *
  5. * Copyright © Magento, Inc. All rights reserved.
  6. * See COPYING.txt for license details.
  7. */
  8. namespace Magento\Framework\Model\ActionValidator\RemoveAction;
  9. class Allowed extends \Magento\Framework\Model\ActionValidator\RemoveAction
  10. {
  11. /**
  12. * Safeguard function that checks if item can be removed
  13. *
  14. * @param \Magento\Framework\Model\AbstractModel $model
  15. * @return bool
  16. *
  17. * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  18. */
  19. public function isAllowed(\Magento\Framework\Model\AbstractModel $model)
  20. {
  21. return true;
  22. }
  23. }