Update to Drupal 8.1.0. For more information, see https://www.drupal.org/drupal-8.1.0-release-notes
This commit is contained in:
parent
b11a755ba8
commit
c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions
|
|
@ -5,12 +5,11 @@
|
|||
* Primarily Drupal hooks and global API functions to manipulate views.
|
||||
*/
|
||||
|
||||
use Drupal\Component\Render\MarkupInterface;
|
||||
use Drupal\Component\Utility\Html;
|
||||
use Drupal\Component\Utility\SafeMarkup;
|
||||
use Drupal\Core\Database\Query\AlterableInterface;
|
||||
use Drupal\Core\Entity\EntityInterface;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\Core\Render\Element;
|
||||
use Drupal\Core\Routing\RouteMatchInterface;
|
||||
use Drupal\Core\Url;
|
||||
use Drupal\views\Plugin\Derivative\ViewsLocalTask;
|
||||
|
|
@ -622,7 +621,7 @@ function views_pre_render_views_form_views_form($element) {
|
|||
foreach ($substitutions as $placeholder => $substitution) {
|
||||
$search[] = Html::escape($placeholder);
|
||||
// Ensure that any replacements made are safe to make.
|
||||
if (!SafeMarkup::isSafe($substitution)) {
|
||||
if (!($substitution instanceof MarkupInterface)) {
|
||||
$substitution = Html::escape($substitution);
|
||||
}
|
||||
$replace[] = $substitution;
|
||||
|
|
|
|||
Reference in a new issue