Chris@0: query->all(); Chris@0: foreach ($variables['content'] as $type) { Chris@0: $variables['types'][$type->id()] = [ Chris@0: 'link' => \Drupal::l($type->label(), new Url('block_content.add_form', ['block_content_type' => $type->id()], ['query' => $query])), Chris@0: 'description' => [ Chris@0: '#markup' => $type->getDescription(), Chris@0: ], Chris@0: 'title' => $type->label(), Chris@0: 'localized_options' => [ Chris@0: 'query' => $query, Chris@0: ], Chris@0: ]; Chris@0: } Chris@0: }