1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Framework\View\Design\Theme;
- /**
- * Theme file interface
- */
- interface FileInterface
- {
- /**
- * Set customization service model
- *
- * @param Customization\FileInterface $service
- * @return $this
- */
- public function setCustomizationService(Customization\FileInterface $service);
- /**
- * Get customization service model
- *
- * @return \Magento\Framework\View\Design\Theme\Customization\FileInterface
- */
- public function getCustomizationService();
- /**
- * Attaches selected theme to current file
- *
- * @param \Magento\Framework\View\Design\ThemeInterface $theme
- * @return $this
- */
- public function setTheme(\Magento\Framework\View\Design\ThemeInterface $theme);
- /**
- * Get theme model
- *
- * @return \Magento\Framework\View\Design\ThemeInterface
- */
- public function getTheme();
- /**
- * Set filename of custom file
- *
- * @param string $fileName
- * @return $this
- */
- public function setFileName($fileName);
- /**
- * Get filename of custom file
- *
- * @return string|null
- */
- public function getFileName();
- /**
- * Return absolute path to file of customization
- *
- * @return string
- */
- public function getFullPath();
- /**
- * Get short file information which can be serialized
- *
- * @return array
- */
- public function getFileInfo();
- /**
- * Get content of current file
- *
- * @return string
- */
- public function getContent();
- /**
- * Save custom file
- *
- * @return $this
- */
- public function save();
- /**
- * Delete custom file
- *
- * @return $this
- */
- public function delete();
- }
|