Back to WebAssetItemInterface class

Method setOption

public self
setOption
(string $key, mixed $value = null)
Set the option
Parameters
  • string $key An option key
  • string $value An option value
Returns
  • self
Since
  • 4.0.0

Method setOption - Source code

/**
 * Set the option
 *
 * @param   string  $key    An option key
 * @param   string  $value  An option value
 *
 * @return self
 *
 * @since   4.0.0
 */
public function setOption(string $key, $value = null) : WebAssetItemInterface;