src/mako/utility/HTML.php
protected function buildMedia(string $type, $files, array $attributes): string
	{
		$sources = '';

		foreach((array) $files as $file)
		{
			$sources .= $this->tag('source', ['src' => $file]);
		}

		return $this->tag($type, $attributes, $sources);
	}
protected function buildMedia(string $type, $files, array $attributes): string
	{
		$sources = '';

		foreach((array) $files as $file)
		{
			$sources .= $this->tag('source', ['src' => $file]);
		}

		return $this->tag($type, $attributes, $sources);
	}
protected function buildMedia ( string $ type , $ files , array $ attributes ) : string { $ sources = '' ; foreach ( ( array ) $ files as $ file ) { $ sources .= $ this -> tag ( 'source' , [ 'src' => $ file ] ) ; } return $ this -> tag ( $ type , $ attributes , $ sources ) ; }
Helper method for building media tags.

@param  string       $type       Tag type
@param  string|array $files      File or array of files
@param  array        $attributes Tag attributes
@return string
Helper method for building media tags .