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
Original LCAS: | |
set(['[email protected]', | |
'[email protected]', | |
'[email protected]', | |
'[email protected]', | |
'[email protected]', | |
'[email protected]', | |
'[email protected]']) | |
Using LCAS: | |
set(['[email protected]']) |
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 PluginControllerInterface { | |
/** | |
* Retrieve plugin metadata for the named plugin of this type. | |
*/ | |
public function getPluginMetadata($name); | |
/** | |
* Retrieve plugin metadata for all plugins of this type. | |
*/ |
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
# Put this in your .gitconfig | |
[url "ssh://[email protected]/sandbox/"] | |
insteadOf = "dos:" | |
[url "ssh://[email protected]/project/"] | |
insteadOf = "do:" |
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 | |
foreach ($this->namespaces as $ns => $dirs) { | |
if (0 !== strpos($namespace, $ns)) { | |
continue; | |
} | |
foreach ($dirs as $dir) { | |
$file = $dir.DIRECTORY_SEPARATOR.$normalizedClass; | |
if (is_file($file)) { | |
return $file; |
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
[root@git6staging drupalfr.git]# ls -la | |
total 472 | |
drwxrwsr-x 6 drupal-git drupal-git 4096 Feb 25 2011 . | |
drwxrwsr-x 12171 drupal-git drupal-git 446464 May 12 16:21 .. | |
drwxrwsr-x 2 drupal-git drupal-git 4096 Feb 25 2011 branches | |
-rw-rw-r-- 1 drupal-git drupal-git 668 Feb 25 2011 config | |
-rw-rw-r-- 1 drupal-git drupal-git 104 Feb 25 2011 description | |
-rw-rw-r-- 1 drupal-git drupal-git 23 Feb 25 2011 HEAD | |
lrwxrwxrwx 1 drupal-git drupal-git 32 May 10 09:07 hooks -> /var/git/templates/hooks/project | |
drwxrwsr-x 2 drupal-git drupal-git 4096 Feb 25 2011 info |
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 | |
/** | |
* @file | |
* Contains Drupal\Core\Plugin\Factory\ConfigDrivenFactory. | |
*/ | |
namespace Drupal\Core\Plugin\Factory; | |
use Drupal\Component\Plugin\Discovery\DiscoveryInterface; | |
use Drupal\Component\Plugin\Factory\DefaultFactory; |
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 | |
/** | |
* Loads the correct type of ConfigEntity from a full configuration object name. | |
* | |
* ConfigEntity expects that the id passed to entity_load() will not include the | |
* config prefix used by the entity type being loaded. This is unhelpful for | |
* calling code that has the fully prefixed configuration object name and can | |
* not reliably know the specific type of ConfigEntity to load. | |
* | |
* This function figures out which type of entity the configuration object |
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
block_address_standalone: | |
pattern: '/block-address/standalone/{block_config}/{route}' | |
defaults: | |
_controller: 'block_controller:respond' | |
requirements: | |
_access_addressed_block: 'TRUE' | |
block_address_embedded: | |
pattern: '/block-address/embedded/{display}' | |
defaults: |
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 | |
/** | |
* @file | |
* Contains \Drupal\block\Plugin\Core\Entity\Block. | |
*/ | |
namespace Drupal\block\Plugin\Core\Entity; | |
use Drupal\Core\Config\Entity\ConfigEntityBase; |
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 | |
class BlockBase { | |
/** | |
* {@inheritdoc} | |
*/ | |
final public function getTitle() { | |
// Override titles should supersede native title logic. | |
if (isset($this->configuration['label'])) { | |
// @todo tokenization? | |
} |
OlderNewer