Skip to content

Instantly share code, notes, and snippets.

View vijaycs85's full-sized avatar

Vijaya Chandran Mani vijaycs85

View GitHub Profile
{
"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": "*",

Placeholder for assets

{
"minimum-stability": "dev",
"require": {
"drupal/panels": "4.x-dev"
},
"repositories": {
"drupal": {
"type": "composer",
"url": "https://packages.drupal.org/8"
}

placeholder for uploadig images.

<?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;
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;
+
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;
<?php
// Create a menu.
$values = array(
'id' => 'menu-test',
'label' => 'Test menu',
'description' => 'Description text',
);
\Drupal::entityTypeManager()->getStorage('menu')->create($values)->save();
/notifications/subscribe/431408/thread/nid/19353881?destination=personal%2Fsending-mail&confirm=1&timestamp=1445266074&signature=5a11c4d2610baccc70a6d335751457f1