This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/core/modules/node/src/Plugin/views/wizard/NodeRevision.php b/core/modules/node/src/Plugin/views/wizard/NodeRevision.php | |
index d7088eb7b..45d4d7f1f 100644 | |
--- a/core/modules/node/src/Plugin/views/wizard/NodeRevision.php | |
+++ b/core/modules/node/src/Plugin/views/wizard/NodeRevision.php | |
@@ -2,6 +2,7 @@ | |
namespace Drupal\node\Plugin\views\wizard; | |
+use Drupal\Core\Form\FormStateInterface; | |
use Drupal\views\Plugin\views\wizard\WizardPluginBase; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\sd8; | |
use Drupal\Core\Entity\ContentEntityInterface; | |
use Drupal\Core\Field\EntityReferenceFieldItemListInterface; | |
/** | |
* Convert an entity to an array and back. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\sd8_migration\Plugin\migrate\source; | |
use Drupal\migrate\Plugin\migrate\source\SqlBase; | |
/** | |
* Table source from database. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/docroot/core/modules/block/src/BlockListBuilder.php b/docroot/core/modules/block/src/BlockListBuilder.php | |
index d2286fcdd..d54c212a2 100644 | |
--- a/docroot/core/modules/block/src/BlockListBuilder.php | |
+++ b/docroot/core/modules/block/src/BlockListBuilder.php | |
@@ -4,6 +4,7 @@ | |
use Drupal\Component\Utility\Html; | |
use Drupal\Component\Serialization\Json; | |
+use Drupal\Component\Utility\UrlHelper; | |
use Drupal\Core\Config\Entity\ConfigEntityListBuilder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/core/lib/Drupal/Core/Path/AliasStorage.php b/core/lib/Drupal/Core/Path/AliasStorage.php | |
index b68984871..34a8ca381 100644 | |
--- a/core/lib/Drupal/Core/Path/AliasStorage.php | |
+++ b/core/lib/Drupal/Core/Path/AliasStorage.php | |
@@ -106,10 +106,10 @@ public function save($source, $alias, $langcode = LanguageInterface::LANGCODE_NO | |
$this->catchException($e); | |
$original = FALSE; | |
} | |
- $query = $this->connection->update(static::TABLE) | |
+ $this->connection->update(static::TABLE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REPLACE(REPLACE(REPLACE( | |
TO_BASE64(UNHEX(SHA2(CONCAT(:string1, LENGTH(language), :string2, language, :string3, LENGTH(redirect_source__path), :string4, redirect_source__path, :string5), 256))), | |
'+', '-'), '/', '_'), '=', '') AS hash_calc, | |
':string1' => 'a:2:{s:8:"language";s:', | |
':string2' => ':"', | |
':string3' => '";s:6:"source";s:', | |
':string4' => ':"', | |
':string5' => '";}', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface foo { | |
} | |
interface bar { | |
function foo(Foo $foo); | |
} | |
class broken implements bar { | |
function foo(bar $x) {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Scale Language Content Settings' | |
type: module | |
description: 'Scale Language Content Settings form' | |
core: 8.x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To register: | |
➜ fortepan git:(master) ✗ curl -H "Content-type: application/json" -X POST 'http://localhost/fortepan/docroot/user/register?_format=json' --data '{"name":{"value":"test name"},"mail":{"value":"[email protected]"},"pass":{"value":"test pass"}}' | |
{"uid":[{"value":14048}],"uuid":[{"value":"6494d669-086a-451f-b7e5-573ffb4e1dfe"}],"langcode":[{"value":"hu"}],"name":[{"value":"test name"}],"created":[{"value":"2020-02-14T05:18:53+00:00","format":"Y-m-d\\TH:i:sP"}],"changed":[{"value":"2020-02-14T05:18:53+00:00","format":"Y-m-d\\TH:i:sP"}],"default_langcode":[{"value":true}],"synonyms":[]}% | |
To log in (unpatched core requires a user name here but I patched it so users can use their email as well): | |
➜ fortepan git:(master) ✗ curl -c cookie.txt --request POST 'http://localhost/fortepan/docroot/user/login?_format=json' --data '{"name":"[email protected]","pass":"test pass"}' | |
{"current_user":{"uid":"14048","name":"test name"},"csrf_token":"AH8CpdwKyNdoTI89F3tUypGm470Qi9eQYYbeS-wK7is","logout_token":"NAH- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To register (admin needs to install rest module, add the registration resource attached, the right registration settings and the user permission 'restful post user_registration' granted to anonymous): | |
➜ curl -H "Content-type: application/json" -X POST 'http://localhost/docroot/user/register?_format=json' --data '{"name":{"value":"test name"},"mail":{"value":"[email protected]"},"pass":{"value":"test pass"}}' | |
{"uid":[{"value":14048}],"uuid":[{"value":"6494d669-086a-451f-b7e5-573ffb4e1dfe"}],"langcode":[{"value":"hu"}],"name":[{"value":"test name"}],"created":[{"value":"2020-02-14T05:18:53+00:00","format":"Y-m-d\\TH:i:sP"}],"changed":[{"value":"2020-02-14T05:18:53+00:00","format":"Y-m-d\\TH:i:sP"}],"default_langcode":[{"value":true}],"synonyms":[]}% | |
To log in (unpatched core requires a user name here but I patched it so users can use their email as well): | |
➜ curl -c cookie.txt --request POST 'http://localhost/docroot/user/login?_format=json' --data '{"name":"[email protected]","pass":"test pass"}' | |
{"current_ |