Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
2
votes
Accepted
What is the best way to verify controller arguments?
Here my working example:
.routing.yml
forcontu_pages.calculator:
path: '/forcontu/pages/calculator/{num1}/{num2}'
defaults:
_controller: '\Drupal\forcontu_pages\Controller\ForcontuPagesContr …
4
votes
How to inject the database connection into a custom service?
At this moment I'm using this code to inject the database service:
*.services.yml
services:
onlyone:
class: Drupal\onlyone\OnlyOne
arguments: ['@entity_type.manager', '@database', '@langua …
1
vote
How to use 'use-ajax' class with pages created by controller?
This is a render array that create a link that open a modal windows.
use Drupal\Core\Url;
public function build() {
$output = array();
$output['overlay_link'] = array(
'#type' => 'link',
'#title …