![]() 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/vendor/magento/module-cms/Model/Page/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\Cms\Model\Page; use Magento\Cms\Model\Page\CustomLayout\Data\CustomLayoutSelectedInterface; use Magento\Framework\Exception\LocalizedException; use Magento\Framework\Exception\NoSuchEntityException; /** * Access to "custom layout" page property. * * @api */ interface CustomLayoutRepositoryInterface { /** * Save layout file to be used when rendering given page. * * @throws LocalizedException When failed to save new value. * @throws \InvalidArgumentException When invalid file was selected. * @throws NoSuchEntityException When given page is not found. * @param CustomLayoutSelectedInterface $layout * @return void */ public function save(CustomLayoutSelectedInterface $layout): void; /** * Do not use custom layout update when rendering the page. * * @throws NoSuchEntityException When given page is not found. * @throws LocalizedException When failed to remove existing value. * @param int $pageId * @return void */ public function deleteFor(int $pageId): void; /** * Find custom layout settings for a page. * * @param int $pageId * @return CustomLayoutSelectedInterface * @throws NoSuchEntityException When either the page or any settings are found. */ public function getFor(int $pageId): CustomLayoutSelectedInterface; }