Skip to content

Instantly share code, notes, and snippets.

View vijaycs85's full-sized avatar

Vijaya Chandran Mani vijaycs85

View GitHub Profile
diff --git a/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php b/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php
index e120d73..eddfa33 100644
--- a/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php
+++ b/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php
@@ -207,6 +207,13 @@ class FieldInstance extends ConfigEntityBase implements FieldInstanceInterface {
*/
public $original = NULL;
+ /**
+ * The plugin manager for entities.
10:22 vijaycs85: GaborHojtsy: hey
10:22 vijaycs85: GaborHojtsy: just looking at the fail..
10:22 vijaycs85: GaborHojtsy: last time I found that article content type was there, but no body field :)
10:25 GaborHojtsy: vijaycs85: yeah now it seems the other way around
10:25 GaborHojtsy: vijaycs85: I guess the article is installed with standard profile
10:25 GaborHojtsy: vijaycs85: however when a content type is added, I think some cache may not be cleared
10:25 GaborHojtsy: vijaycs85: so we don't get the menu item / router callback registered
10:25 GaborHojtsy: vijaycs85: I *think*
10:26 GaborHojtsy: vijaycs85: I did not have more time to delve into it further
10:26 vijaycs85: GaborHojtsy: no problem, I'm checking in my local
### Clean up Database ###
mysql --host=localhost -uroot -proot -e'DROP DATABASE `drupal8`; CREATE DATABASE `drupal8`;'
### Clean up file system ###
cd /Applications/MAMP/htdocs/drupal-8
git pull origin 8.x
cd ./sites/default/
rm -rf files/
rm settings.php
cp default.settings.php settings.php
<?php
/**
* @file
* Contains \Drupal\session_test\Controller\SessionTestController.
*/
namespace Drupal\session_test\Controller;
use Drupal\Core\ControllerInterface;
wget --http-user=USERNAME --http-password=PASSWORD http://SOMETURLTOFILE
diff --git a/core/modules/path/lib/Drupal/path/Tests/PathLanguageTest.php b/core/modules/path/lib/Drupal/path/Tests/PathLanguageTest.php
index 9f61665..4d9b088 100644
--- a/core/modules/path/lib/Drupal/path/Tests/PathLanguageTest.php
+++ b/core/modules/path/lib/Drupal/path/Tests/PathLanguageTest.php
@@ -19,7 +19,7 @@ class PathLanguageTest extends PathTestBase {
*
* @var array
*/
- public static $modules = array('path', 'locale');
+ public static $modules = array('path', 'locale', 'content_translation');
/**
* Language translations overview page for a configuration name.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* Page request object.
* @param array $mapper_plugin
* An array of plugin details with the following keys:
* - plugin_id:
* - plugin_definition:
* An array of mapper details with the following keys:
### Clean up Database ###
mysql --host=localhost -uroot -proot -e'DROP DATABASE `drupal8`; CREATE DATABASE `drupal8`;'
### Clean up file system ###
cd /Applications/MAMP/htdocs/drupal-8
# git pull origin 8.x
cd ./sites/default/
rm -rf files/
rm settings.php
cp default.settings.php settings.php
diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/Controller/CustomBlockController.php b/core/modules/block/custom_block/lib/Drupal/custom_block/Controller/CustomBlockController.php
index 1bcfa20..852d33e 100644
--- a/core/modules/block/custom_block/lib/Drupal/custom_block/Controller/CustomBlockController.php
+++ b/core/modules/block/custom_block/lib/Drupal/custom_block/Controller/CustomBlockController.php
@@ -11,9 +11,11 @@
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Entity\EntityStorageControllerInterface;
use Drupal\custom_block\CustomBlockTypeInterface;
+use Drupal\Core\StringTranslation\TranslationInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
diff --git a/core/modules/toolbar/lib/Drupal/toolbar/Routing/ToolbarController.php b/core/modules/toolbar/lib/Drupal/toolbar/Controller/ToolbarController.php
similarity index 85%
rename from core/modules/toolbar/lib/Drupal/toolbar/Routing/ToolbarController.php
rename to core/modules/toolbar/lib/Drupal/toolbar/Controller/ToolbarController.php
index 7404555..8a40f19 100644
--- a/core/modules/toolbar/lib/Drupal/toolbar/Routing/ToolbarController.php
+++ b/core/modules/toolbar/lib/Drupal/toolbar/Controller/ToolbarController.php
@@ -2,10 +2,10 @@
/**