Back to WebAssetItemInterface class

Method getOption

public mixed
getOption
(string $key, mixed $default = null)
Get the option
Parameters
  • string $key An option key
  • string $default A default value
Returns
  • mixed
Since
  • 4.0.0

Method getOption - Source code

/**
 * Get the option
 *
 * @param   string  $key      An option key
 * @param   string  $default  A default value
 *
 * @return mixed
 *
 * @since   4.0.0
 */
public function getOption(string $key, $default = null);