yii\web\Request::setAcceptableContentTypes PHP Метод

setAcceptableContentTypes() публичный Метод

Please refer to Request::getAcceptableContentTypes on the format of the parameter.
См. также: getAcceptableContentTypes()
См. также: parseAcceptHeader()
public setAcceptableContentTypes ( array $value )
$value array the content types that are acceptable by the end user. They should be ordered by the preference level.
    public function setAcceptableContentTypes($value)
    {
        $this->_contentTypes = $value;
    }