Update core 8.3.0
This commit is contained in:
parent
da7a7918f8
commit
cd7a898e66
6144 changed files with 132297 additions and 87747 deletions
|
@ -38,13 +38,13 @@ class DBLogResource extends ResourceBase {
|
|||
*/
|
||||
public function get($id = NULL) {
|
||||
if ($id) {
|
||||
$record = db_query("SELECT * FROM {watchdog} WHERE wid = :wid", array(':wid' => $id))
|
||||
$record = db_query("SELECT * FROM {watchdog} WHERE wid = :wid", [':wid' => $id])
|
||||
->fetchAssoc();
|
||||
if (!empty($record)) {
|
||||
return new ResourceResponse($record);
|
||||
}
|
||||
|
||||
throw new NotFoundHttpException(t('Log entry with ID @id was not found', array('@id' => $id)));
|
||||
throw new NotFoundHttpException(t('Log entry with ID @id was not found', ['@id' => $id]));
|
||||
}
|
||||
|
||||
throw new BadRequestHttpException(t('No log entry ID was provided'));
|
||||
|
|
|
@ -34,7 +34,7 @@ class DblogMessage extends FieldPluginBase {
|
|||
*/
|
||||
protected function defineOptions() {
|
||||
$options = parent::defineOptions();
|
||||
$options['replace_variables'] = array('default' => TRUE);
|
||||
$options['replace_variables'] = ['default' => TRUE];
|
||||
|
||||
return $options;
|
||||
}
|
||||
|
@ -45,11 +45,11 @@ class DblogMessage extends FieldPluginBase {
|
|||
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
|
||||
parent::buildOptionsForm($form, $form_state);
|
||||
|
||||
$form['replace_variables'] = array(
|
||||
$form['replace_variables'] = [
|
||||
'#title' => $this->t('Replace variables'),
|
||||
'#type' => 'checkbox',
|
||||
'#default_value' => $this->options['replace_variables'],
|
||||
);
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue