1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\View\Asset;
/**
* Interface of an asset with locally accessible source file
* @api
* @since 100.0.2
*/
interface LocalInterface extends AssetInterface
{
/**
* Get original source file where the asset contents can be read from
*
* Returns absolute path to file in local file system
*
* @return string
*/
public function getSourceFile();
/**
* Get content of a local asset
*
* @return string
*/
public function getContent();
/**
* Get an invariant relative path to file
*
* @return string
*/
public function getFilePath();
/**
* Get context of the asset that contains data necessary to build an absolute path or URL to the file
*
* @return ContextInterface
*/
public function getContext();
/**
* Get the module context of file path
*
* @return string
*/
public function getModule();
/**
* Get a relative "context" path to the asset file
*
* This path includes both invariant and context part that can serve as an identifier of the file in current context
*
* @return string
*/
public function getPath();
}