This file contains hidden or 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 CToolsContextInterface { | |
/** | |
* Compares the context object's data type to the requested type. | |
* | |
* @param $type | |
* The data type to compare this context against. | |
* |
This file contains hidden or 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 | |
// My field mappings: | |
$this->addFieldMapping('field_blog_images', 'url'); | |
$this->addFieldMapping('field_blog_images:alt', 'image_alt'); | |
$this->addFieldMapping('field_blog_images:title', 'image_title'); | |
public function prepareRow($current_row) { | |
parent::prepareRow($current_row); | |
$query = Database::getConnection('swagonline') |
This file contains hidden or 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 | |
class ctools_context_entity extends ctools_context { | |
public $entity_type; | |
public $entity_id; | |
public $revision_id; |
This file contains hidden or 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 | |
use Symfony\Component\HttpFoundation\Request; | |
/** | |
* Implements hook_response_build(). | |
* | |
* This is just a hook I made up to show how context might get calculated per | |
* page/variant. | |
*/ |
This file contains hidden or 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/lib/Drupal/config_translation/ConfigMapperManager.php b/lib/Drupal/config_translation/ConfigMapperManager.php | |
index 59cfb01..3076a76 100644 | |
--- a/lib/Drupal/config_translation/ConfigMapperManager.php | |
+++ b/lib/Drupal/config_translation/ConfigMapperManager.php | |
@@ -57,13 +57,6 @@ class ConfigMapperManager extends DefaultPluginManager { | |
} | |
/** | |
- * {@inheritdoc} | |
- */ |
This file contains hidden or 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 | |
/** | |
* @file | |
* Contains \Drupal\Component\Plugin\PluginBase | |
*/ | |
namespace Drupal\Component\Plugin; | |
/** | |
* Base class for plugins wishing to support metadata inspection. |
This file contains hidden or 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 | |
public function __construct(array $configuration, $plugin_id, array $plugin_definition) { | |
parent::__construct($configuration, $plugin_id, $plugin_definition); | |
$this->configuration += $this->settings() + array( | |
'label' => '', | |
'module' => $plugin_definition['module'], | |
'label_display' => BlockInterface::BLOCK_LABEL_VISIBLE, |
This file contains hidden or 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
{ | |
"require": { | |
"symfony/class-loader": "2.3.*", | |
"symfony/http-foundation": "2.3.*", | |
"symfony/http-kernel": "2.3.*", | |
"symfony/event-dispatcher": "~2.3", | |
"symfony/dependency-injection": "~2.3", | |
"symfony/routing": "2.3.*", | |
"symfony/config": "2.3.*", | |
"symfony/validator": "2.3.*", |
This file contains hidden or 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\Core\Database; | |
class DatabaseSelect { | |
/** | |
* @var \Drupal\Core\Database\Connection $connection | |
*/ | |
protected $connection; |
This file contains hidden or 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 | |
function db_select($table, $alias = NULL, array $options = array()) { | |
if (empty($options['target'])) { | |
$options['target'] = 'default'; | |
} | |
return Database::getConnection($options['target'])->select($table, $alias, $options); | |
} |