CorePluginResource
Hierarchy
- FetchResource
- CorePluginResource
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Parameters
resource: CorePluginReference
optionalprogress: ProgressTracker
Returns CorePluginResource
Properties
publicoptionalprogress
The progress tracker.
Accessors
isAsync
Whether this Resource is loaded asynchronously
Returns boolean
name
The name of the referenced file
Returns string
Methods
getURL
Returns string
resolve
Resolves the file contents
Returns Promise<File>
The resolved file.
setPlayground
Parameters
playground: UniversalPHP
Returns void
staticcreate
Creates a new Resource based on the given file reference
Parameters
ref: FileReference
The file reference to create the Resource for
options: ResourceOptions
Additional options for the Resource
Returns Resource
A new Resource instance
A resource that fetches a WordPress plugin from wordpress.org.