Search Results
… rendering a form that accepts a node ID as an argument through the URL. Such a mechanism could be used to allow the user to submit … $context = EntityContext::fromEntityTypeId('user', $this->t('User from URL')); return ['user' => $context]; } To use this context provider we …
… use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Url; use Drupal\file\Entity\File; class BatchForm extends FormBase { … batch_set($batch->toArray()); $form_state->setRedirectUrl(new Url($this->getFormId())); } Note that we can't pass the $tempFile …
Article: Drupal 9: Configuring Drupal To Authenticate Against A Remote SimpleSAMLphp Identity Provider
… IdP called __DYNAMIC:1__ . SimpleSAMLphp will replace this with the URL of the site, which can create a little bit of confusion when … you'll see a bunch of output. This consists of your metadata URL, the SAML 2.0 metadata XML, a PHP representation of the same and …
Article: DrupalCamp London 2014: A Review
… just a web service (that wraps Lucene) so it can be called with a URL, normally as a GET request. The URL’s can contain the same argument more than once, not allowing this …
Article: PHPNW11: A Review
… injected into the page content, which has recently been compounded by URL shorteners. Exploits of this nature range from theft of session … every page request. Non-persistent attacks are present only within the URL, but can be compounded by URL shorteners that mask this dodgy URL from the user until it is too …
Article: BSides Manchester 2018
… to pick up. He then started talking about a header called X-Original-URL, which I thought was a little familiar. James then went onto show a … by the Drupal internal caches being poisoned using this X-Original-URL header and external cache systems exposing that poisoned cache. He …
Article: PHP Easter Eggs
… for PHP by appending one of the following strings to the end of the URL. ?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 …
Snippet: Drupal 10: A List Of Core Contexts
… @language.current_language_context:language_url Provided by …
… the other being the subjects. It will then create the necessary RSS URLs and use the multi-feed aggregator feature of SimplePie to collate … $feeds[] = 'http://upcoming.yahoo.com/syndicate/v2/search_all/?q='.urlencode($subject).'&loc='.$location.'&rt=1'; } } // create SimplePie … $feed = new SimplePie(); // add feeds to SimplePie $feed->set_feed_url($feeds); // turn off feed ordering by date …
… The setRedirect() function takes two parameters. The first is the URL to be redirected to and the second is the HTTP response code. … …