PublicPackageFile extends PackageResource implements PublicResourceInterface

FinalYes
Internal

Only to be used in TYPO3\CMS\Core\SystemResource namespace

Table of Contents

Interfaces

PublicResourceInterface
This interface is public API and can be referenced in third party code or throughout the TYPO3 core.

Properties

$identifier  : PackageResourceIdentifier
$package  : PackageInterface
$relativePath  : string

Methods

__construct()  : mixed
__toString()  : string
fromPackageResource()  : self
getContents()  : string
getExtension()  : string
getHash()  : string
getMimeType()  : string
getName()  : string
getNameWithoutExtension()  : string
getPublicUri()  : UriInterface
getResourceIdentifier()  : string
isPublished()  : bool

Properties

$relativePath read-only

protected string $relativePath

Methods

__toString()

public __toString() : string
Return values
string

fromPackageResource()

public static fromPackageResource(PackageResource $packageResource) : self
Parameters
$packageResource : PackageResource
Internal

This API is only meant for very limited use cases, e.g. for building URIs for Vite dev server, where the dev server actually publishes (exposes) all (private) source files, so that they can be processed on the fly Do not use within TYPO3 core or other third party extensions

Return values
self

getExtension()

public getExtension() : string
Return values
string

getName()

public getName() : string
Return values
string

getNameWithoutExtension()

public getNameWithoutExtension() : string
Return values
string

getResourceIdentifier()

public getResourceIdentifier() : string
Return values
string

isPublished()

public isPublished() : bool
Return values
bool

        
On this page

Search results