use Symfony\Component\HttpFoundation\RedirectResponse;
function
myredirect($path) {
use Symfony\Component\HttpFoundation\RedirectResponse;
function
myredirect($path) {
<?php
class myController extends ControllerBase {
public function main(){
use Drupal\Core\Controller\ControllerBase;
use Symfony\Component\HttpFoundation\RedirectResponse;
return $this->redirect('my.route.name'); // method 1
Ganz Oben in Controller:
use Drupal\Core\Link;
use Drupal\Core\Url;
In Funktion:
$url = Url::fromUserInput('/path/to/content');
$link = Link::fromTextAndUrl(t('Link Title'), $url)->toString();
Drupal erlaubt <iframe> usw für Default nicht. Eine Lösung:
return [
'#type' => 'inline_template',
'#template' => '{{ meininhalt }}',
'#context' => [ 'meininhalt ' => $inhaltMitHTMLCode ]
];
Mit der folgenden Befehle habe ich ein Git-Repository zum ersten Mal erstellt und aktualisiert.
So gehe ich vor:
Nach der Installation scheint es zum Teil zu funktionieren. Manche Inhaltstypen und deren Inhalt ist migriert worden. Aber es gibt auch viele Probleme, vor Allem mit Input-Filters und User Profiles. Wie kann man sie beheben?
Hallo,
meine Lesezeichen in Firefox sind leider verschwunden. Ich sehe noch die neusten der letzten ca.2-3 Monate, den Rest nicht mehr. Kann mir jemand weiterhelfen? Besten Dank im Voraus!
Wenn dieser Fehler auftaucht:
WARNING: failed to open pid_file '/var/run/sphinxsearch/searchd.pid
Lösung:
ssh# service sphinxsearch start
Drupal 8 - How To Create Parallax Effects
https://www.wdtutorials.com/drupal/theming/how-to-create-parallax-effects/
Apache Solr/Lucene und Elasticsearch kommen häufig vor. Da Lernaufwand zu groß ist, ist es sinnvoller sich auf eine konzentrieren. Welche ist besser?
Neueste Kommentare
Same with Drush 13 + PHP 8.3 and my Solution
Same with Drush 13 + PHP 8.3
Error : Failed to install the required package 'RPM' by using AP
Initializing...
Error : Failed to install the required package 'RPM' by using APT. Please install it manually.
Exit
Solution:
Installieren & Aktivieren
So habe es installiert und dann mit Hilfe von Key/Code (über Website von Acronis Cyber Protect) aktiviert:
I have a view with a path…
I have a view with a path like
/my-content-export
to export entivies as JSON or CSV.admin_toolbar 3.5.2 is the…
admin_toolbar 3.5.2 is the reason. Patch coming ...
Drupal 10.4, in a custom View
Drupal 10.4:
Tools & Settings >> Security…
Tools & Settings >> Security Policy :
Allow only secure FTPS connections
List config vaiables
/usr/sbin/mariadbd --help --verbose | grep "query.*size"
Restart MariaDB / MySQL
Commandline:
MariaDB Restart (after changes in /etc/mysql/db-performance.cnf)
After my changes in /etc/mysql/db-performance.cnf