diff --git a/core/modules/dblog/dblog.module b/core/modules/dblog/dblog.module index 3628f72..0802420 100644 --- a/core/modules/dblog/dblog.module +++ b/core/modules/dblog/dblog.module @@ -11,6 +11,7 @@ * @see watchdog() */ +use Drupal\Component\Utility\MapArray; use Drupal\Core\Database\Database; /** @@ -134,7 +135,7 @@ function _dblog_get_message_types() { $types[] = $object->type; } - return drupal_map_assoc($types); + return MapArray::copyValuesToKeys($types); } /** diff --git a/core/modules/dblog/lib/Drupal/dblog/Plugin/views/field/DblogOperations.php b/core/modules/dblog/lib/Drupal/dblog/Plugin/views/field/DblogOperations.php index d251124..f462b57 100644 --- a/core/modules/dblog/lib/Drupal/dblog/Plugin/views/field/DblogOperations.php +++ b/core/modules/dblog/lib/Drupal/dblog/Plugin/views/field/DblogOperations.php @@ -29,7 +29,7 @@ function click_sortable() { } /** - * Overrides \Drupal\views\Plugin\views\field\FieldPluginBase::FieldPluginBase(). + * {@inheritdoc} */ public function render($values) { $value = $this->getValue($values);