src/MediaUploader.php
public function setTypeDefinition($type, $mime_types, $extensions)
    {
        $this->config['aggregate_types'][$type] = [
            'mime_types' => (array) $mime_types,
            'extensions' => (array) $extensions,
        ];

        return $this;
    }
public function setTypeDefinition($type, $mime_types, $extensions)
    {
        $this->config['aggregate_types'][$type] = [
            'mime_types' => (array) $mime_types,
            'extensions' => (array) $extensions,
        ];

        return $this;
    }
public function setTypeDefinition ( $ type , $ mime_types , $ extensions ) { $ this -> config [ 'aggregate_types' ] [ $ type ] = [ 'mime_types' => ( array ) $ mime_types , 'extensions' => ( array ) $ extensions , ] ; return $ this ; }
Add or update the definition of a aggregate type.
@param string           $type       the name of the type
@param string|string[]  $mime_types list of MIME types recognized
@param string|string[]  $extensions list of file extensions recognized
@return static
Add or update the definition of a aggregate type .