Skip to content

Instantly share code, notes, and snippets.

Avatar

Vijaya Chandran Mani vijaycs85

View GitHub Profile
View d8-composer.json
{
"name": "vijaycs85/d8_playground",
"description": "Create D8 core components purely with composer",
"license": "GPL-2.0+",
"require": {
"php": ">=5.5.9",
"drupal/action": "*",
"drupal/aggregator": "*",
"drupal/automated_cron": "*",
"drupal/bartik": "*",
View composer.json
{
"minimum-stability": "dev",
"require": {
"drupal/panels": "4.x-dev"
},
"repositories": {
"drupal": {
"type": "composer",
"url": "https://packages.drupal.org/8"
}
View entity-field-save.php
<?php
$storage = $this->entityManager->getStorage($entity_type);
$ids = $storage->getQuery()
->condition('type', $type)
->execute();
$entities = $storage->loadMultiple($ids);
// Load the entities.
foreach ($entities as $entity) {
$entity->[field name] = $value;
View 2835845-2.diff
diff --git a/core/modules/hal/tests/src/Functional/EntityResource/BlockContent/BlockContentHalJsonAnonTest.php b/core/modules/hal/tests/src/Functional/EntityResource/BlockContent/BlockContentHalJsonAnonTest.php
new file mode 100644
index 0000000..996da5e
--- /dev/null
+++ b/core/modules/hal/tests/src/Functional/EntityResource/BlockContent/BlockContentHalJsonAnonTest.php
@@ -0,0 +1,136 @@
+<?php
+
+namespace Drupal\Tests\hal\Functional\EntityResource\BlockContent;
+
View 2595535-diff-18-19.txt.diff
diff --git a/core/modules/config_translation/src/Access/ConfigTranslationOverviewAccess.php b/core/modules/config_translation/src/Access/ConfigTranslationOverviewAccess.php
index 51f6463..8504ea9 100644
--- a/core/modules/config_translation/src/Access/ConfigTranslationOverviewAccess.php
+++ b/core/modules/config_translation/src/Access/ConfigTranslationOverviewAccess.php
@@ -7,6 +7,7 @@
namespace Drupal\config_translation\Access;
+use Drupal\config_translation\Exception\ConfigMapperLanguageException;
use Drupal\Core\Language\LanguageManagerInterface;
View create-menu-items.php
<?php
// Create a menu.
$values = array(
'id' => 'menu-test',
'label' => 'Test menu',
'description' => 'Description text',
);
\Drupal::entityTypeManager()->getStorage('menu')->create($values)->save();
View gist:9113b5a4e60181203b86
/notifications/subscribe/431408/thread/nid/19353881?destination=personal%2Fsending-mail&confirm=1&timestamp=1445266074&signature=5a11c4d2610baccc70a6d335751457f1