Your IP : 216.73.216.220


Current Path : /home/rtorresani/www/vendor/magento/module-backend/Model/Menu/Filter/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/module-backend/Model/Menu/Filter/Iterator.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Magento\Backend\Model\Menu\Filter;

/**
 * Menu filter iterator
 * @api
 * @since 100.0.2
 */
class Iterator extends \FilterIterator
{
    /**
     * Check whether the current element of the iterator is acceptable
     *
     * @return bool true if the current element is acceptable, otherwise false.
     */
    #[\ReturnTypeWillChange]
    public function accept()
    {
        return !($this->current()->isDisabled() || !$this->current()->isAllowed());
    }
}