#71: Remove files no longer part of Drupal core in Drupal 8.0.0-beta15.
This commit is contained in:
parent
f3791f1da3
commit
1ebe18adc2
101 changed files with 0 additions and 9459 deletions
|
@ -1,43 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\Core\ContentNegotiation.
|
||||
*/
|
||||
|
||||
namespace Drupal\Core;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
/**
|
||||
* Provides content negotation based upon query parameters.
|
||||
*/
|
||||
class ContentNegotiation {
|
||||
|
||||
/**
|
||||
* Gets the normalized type of a request.
|
||||
*
|
||||
* The normalized type is a short, lowercase version of the format, such as
|
||||
* 'html', 'json' or 'atom'.
|
||||
*
|
||||
* @param \Symfony\Component\HttpFoundation\Request $request
|
||||
* The request object from which to extract the content type.
|
||||
*
|
||||
* @return string
|
||||
* The normalized type of a given request.
|
||||
*/
|
||||
public function getContentType(Request $request) {
|
||||
// AJAX iframe uploads need special handling, because they contain a JSON
|
||||
// response wrapped in <textarea>.
|
||||
if ($request->get('ajax_iframe_upload', FALSE)) {
|
||||
return 'iframeupload';
|
||||
}
|
||||
|
||||
if ($request->query->has('_format')) {
|
||||
return $request->query->get('_format');
|
||||
}
|
||||
|
||||
// Do HTML last so that it always wins.
|
||||
return 'html';
|
||||
}
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\Core\Database\Install\TaskException.
|
||||
*/
|
||||
|
||||
namespace Drupal\Core\Database\Install;
|
||||
|
||||
/**
|
||||
* Exception thrown if the database installer fails.
|
||||
*/
|
||||
class TaskException extends \RuntimeException { }
|
Reference in a new issue