upgrades core to 8.4.2

This commit is contained in:
Bachir Soussi Chiadmi
2017-11-14 16:09:54 +01:00
parent bd60eff9b3
commit c2b4e25be4
3504 changed files with 140306 additions and 38684 deletions
@@ -135,20 +135,24 @@ class DbLogController extends ControllerBase {
[
'data' => $this->t('Type'),
'field' => 'w.type',
'class' => [RESPONSIVE_PRIORITY_MEDIUM]],
'class' => [RESPONSIVE_PRIORITY_MEDIUM],
],
[
'data' => $this->t('Date'),
'field' => 'w.wid',
'sort' => 'desc',
'class' => [RESPONSIVE_PRIORITY_LOW]],
'class' => [RESPONSIVE_PRIORITY_LOW],
],
$this->t('Message'),
[
'data' => $this->t('User'),
'field' => 'ufd.name',
'class' => [RESPONSIVE_PRIORITY_MEDIUM]],
'class' => [RESPONSIVE_PRIORITY_MEDIUM],
],
[
'data' => $this->t('Operations'),
'class' => [RESPONSIVE_PRIORITY_LOW]],
'class' => [RESPONSIVE_PRIORITY_LOW],
],
];
$query = $this->database->select('watchdog', 'w')
@@ -298,8 +302,9 @@ class DbLogController extends ControllerBase {
/**
* Builds a query for database log administration filters based on session.
*
* @return array
* An associative array with keys 'where' and 'args'.
* @return array|null
* An associative array with keys 'where' and 'args' or NULL if there were
* no filters set.
*/
protected function buildFilterQuery() {
if (empty($_SESSION['dblog_overview_filter'])) {
@@ -0,0 +1,24 @@
<?php
namespace Drupal\dblog\Plugin\views\filter;
use Drupal\views\Plugin\views\filter\InOperator;
/**
* Exposes log types to views module.
*
* @ViewsFilter("dblog_types")
*/
class DblogTypes extends InOperator {
/**
* {@inheritdoc}
*/
public function getValueOptions() {
if (!isset($this->valueOptions)) {
$this->valueOptions = _dblog_get_message_types();
}
return $this->valueOptions;
}
}