VendorAsset
- Type
- Class
- Namespace
- craft\web\assets\graphiql
- Inherits
- craft\web\assets\graphiql\VendorAsset » craft\web\AssetBundle » yii\web\AssetBundle (opens new window) » yii\base\BaseObject (opens new window)
- Implements
- yii\base\Configurable (opens new window)
- Since
- 3.3.0
- Deprecated in
- in 3.3.16. Use [[GraphiqlAsset]] instead.
VendorAsset asset bundle.
View source (opens new window)
# Public Properties
# depends
- Type
- array (opens new window)
- Default value
[ \craft\web\assets\graphiql\GraphiqlAsset::class, ]
List of bundle class names that this bundle depends on.
For example:
public $depends = [
'yii\web\YiiAsset',
'yii\bootstrap\BootstrapAsset',
];
View source (opens new window)
# Public Methods
Method | Description |
---|---|
__call() (opens new window) | Calls the named method which is not a class method. |
__construct() (opens new window) | Constructor. |
__get() (opens new window) | Returns the value of an object property. |
__isset() (opens new window) | Checks if a property is set, i.e. defined and not null. |
__set() (opens new window) | Sets value of an object property. |
__unset() (opens new window) | Sets an object property to null. |
canGetProperty() (opens new window) | Returns a value indicating whether a property can be read. |
canSetProperty() (opens new window) | Returns a value indicating whether a property can be set. |
className() (opens new window) | Returns the fully qualified name of this class. |
hasMethod() (opens new window) | Returns a value indicating whether a method is defined. |
hasProperty() (opens new window) | Returns a value indicating whether a property is defined. |
init() | Initializes the bundle. |
publish() (opens new window) | Publishes the asset bundle if its source code is not under Web-accessible directory. |
register() (opens new window) | Registers this asset bundle with a view. |
registerAssetFiles() (opens new window) | Registers the CSS and JS files with the given view. |
# Protected Methods
Method | Description |
---|---|
dotJs() | Returns '.min.js' if Craft is configured to serve compressed JavaScript files, otherwise '.js'. |
useCompressedJs() | Returns whether Craft is configured to serve compressed JavaScript files |