Your IP : 216.73.216.97


Current Path : /var/www/clients/client3/web2/web/vendor/magento/module-customer/Block/
Upload File :
Current File : /var/www/clients/client3/web2/web/vendor/magento/module-customer/Block/SectionNamesProvider.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Magento\Customer\Block;

use Magento\Customer\CustomerData\SectionPool;
use Magento\Framework\View\Element\Block\ArgumentInterface;

/**
 * ViewModel to get sections names array.
 */
class SectionNamesProvider implements ArgumentInterface
{
    /**
     * @var SectionPool
     */
    private $sectionPool;

    /**
     * @param SectionPool $sectionPool
     */
    public function __construct(
        SectionPool $sectionPool
    ) {
        $this->sectionPool = $sectionPool;
    }

    /**
     * Return array of section names based on config.
     *
     * @return array
     */
    public function getSectionNames()
    {
        return $this->sectionPool->getSectionNames();
    }
}