Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields
BundleInterface Interface Reference
Inheritance diagram for BundleInterface:
RequireJs

Public Member Functions

 addFile ($filePath, $sourcePath, $contentType)
 
 flush ()
 
 clear ()
 

Data Fields

const BUNDLE_JS_DIR = 'js/bundle'
 

Detailed Description

Bundle Interface

Definition at line 11 of file BundleInterface.php.

Member Function Documentation

◆ addFile()

addFile (   $filePath,
  $sourcePath,
  $contentType 
)

Add file that can be bundled

Parameters
string$filePath
string$sourcePath
string$contentType
Returns
bool true on success

Implemented in RequireJs.

◆ clear()

clear ( )

Delete all bundles

Returns
bool true on success

Implemented in RequireJs.

◆ flush()

flush ( )

Flushes all files added to appropriate bundle

Returns
bool true on success

Implemented in RequireJs.

Field Documentation

◆ BUNDLE_JS_DIR

const BUNDLE_JS_DIR = 'js/bundle'

Path relative to package directory where bundle files should be created

Definition at line 16 of file BundleInterface.php.


The documentation for this interface was generated from the following file: