Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/app/code/Cnc/Checkout/Model/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/app/code/Cnc/Checkout/Model/CmsConfigProvider.php
<?php
/**
 * This file is part of Bexley_Checkout for Magento2.
 *
 * @license All rights reserved
 * @author MikoĊ‚aj Szumko <[email protected]>
 * @category Bexley
 * @package Bexley_Checkout
 * @copyright Copyright (c) 2018 Agence Soon (http://www.agence-soon.fr)
 */

declare(strict_types=1);

namespace Cnc\Checkout\Model;

use Magento\Checkout\Model\ConfigProviderInterface;
use Magento\Cms\Block\Block;
use Magento\Framework\View\LayoutInterface;

class CmsConfigProvider implements ConfigProviderInterface
{
    /**
     * @var LayoutInterface
     */
    private $layout;

    /**
     * CmsConfigProvider constructor.
     * @param LayoutInterface $layout
     */
    public function __construct(LayoutInterface $layout)
    {
        $this->layout = $layout;
    }

    /**
     * @return array|null
     */
    public function getConfig()
    {
        $config = ['checkout_sidebar_cms' => []];
        $config['checkout_sidebar_cms'] []=
            ['html' => $this->layout->createBlock(Block::class)
            ->setBlockId('checkout_sidebar_reassurance')
            ->setNameInLayout('checkout_sidebar_reassurance')
            ->toHtml()];
        $config['checkout_sidebar_cms'] []=
            ['html' => $this->layout->createBlock(Block::class)
            ->setBlockId('checkout_sidebar_contact')
            ->setNameInLayout('checkout_sidebar_contact')
            ->toHtml()];

        return $config;
    }
}

Spamworldpro Mini