Skip to content
Snippets Groups Projects

Issue #3308511: Deprecated function: htmlspecialchars(): Passing null to parameter #1

Open Issue #3308511: Deprecated function: htmlspecialchars(): Passing null to parameter #1
Open Mingsong requested to merge issue/jsonapi_extras-3308511:3308511 into 8.x-3.x
1 file
+ 7
8
Compare changes
  • Side-by-side
  • Inline
@@ -203,18 +203,17 @@ class JsonapiResourceConfigForm extends EntityForm {
public function save(array $form, FormStateInterface $form_state) {
$resource_config = $this->entity;
$status = $resource_config->save();
$type = $resource_config->get('resourceType') ?? '';
switch ($status) {
case SAVED_NEW:
$this->messenger()->addStatus($this->t('Created the %label JSON:API Resource overwrites.', [
'%label' => $resource_config->id(),
]));
case SAVED_NEW :
$this->messenger()->addStatus($this->t('Created the %type JSON:API Resource overwrites.', [
'%type' => $type]));
break;
default:
$this->messenger()->addStatus($this->t('Saved the %label JSON:API Resource overwrites.', [
'%label' => $resource_config->id(),
]));
default :
$this->messenger()->addStatus($this->t('Saved the %type JSON:API Resource overwrites.', [
'%type' => $type]));
}
$form_state->setRedirectUrl($resource_config->toUrl('collection'));
}
Loading