3 namespace Drupal\embed_test\Controller;
5 use Drupal\Core\Controller\ControllerBase;
6 use Drupal\Core\Render\HtmlResponse;
7 use Drupal\editor\EditorInterface;
8 use Drupal\embed\EmbedButtonInterface;
9 use Symfony\Component\HttpFoundation\Request;
12 * Returns responses for Embed Test module routes.
14 class EmbedTestController extends ControllerBase {
16 public function testAccess(Request $request, EditorInterface $editor, EmbedButtonInterface $embed_button) {
17 $text = $request->get('value');
19 $response = new HtmlResponse([
22 'contexts' => ['url.query_args:value'],
27 $response->setStatusCode(404);