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
node_page_edit: | |
pattern: '/music/{album}/{artist}' | |
defaults: | |
_content: 'Drupal\music\MusicController::view' | |
requirements: | |
_permission: 'yeap' | |
options: | |
parameters: | |
album: | |
converter: 'paramconverter.typed_data' |
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
foo_route: | |
pattern: '/some/random/{entity_type}/{entity}/route' | |
options: | |
parameters: | |
entity: | |
type: entity:{entity_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
+ public function convert($definition, $name, array $defaults, Request $request) { | |
+ // Only continue if there is a value for the given parameter. | |
+ if (!isset($defaults[$name])) { | |
+ return; | |
+ } | |
+ $entity_type = substr($definition['type'], strlen('entity:')); | |
+ if ($storage = $this->entityManager->getStorageController($entity_type)) { | |
+ return $storage->load($defaults[$name]); | |
+ } | |
+ } |
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
[user] | |
# Credentials. | |
name = Foo Bar | |
email = [email protected] | |
drupal = $(whoami) | |
[credential] | |
# Save passwords in ~/.git-credentials. | |
helper = store |
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
## | |
## This file is only needed for Compass/Sass integration. If you are not using | |
## Compass, you may safely ignore or delete this file. | |
## | |
## If you'd like to learn more about Sass and Compass, see the sass/README.txt | |
## file for more information. | |
## | |
# Default to development if environment is not set. | |
saved = environment |
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
/** | |
* @Route("/foo/{bar}/{baz}") | |
*/ | |
class SomePage extends ControllerBase { | |
/** | |
* @Content | |
*/ | |
public function content(NodeInterface $bar, UserInterface $baz) { | |
return 'Blaaah'; |
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
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
@import "compass"; | |
// ============================================================================= | |
// sass/variables/_typography.scss | |
// ============================================================================= |
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
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
@import "compass"; | |
@import "singularitygs"; | |
// Grid definition. | |
$grids: 2 1; |
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
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
$base-font-size: 14px; | |
// ============================================================================= | |
// sass/abstraction/_units.scss | |
// ============================================================================= |
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
use Guzzle\Cache\CacheAdapterInterface; | |
/** | |
* Custom cache adapter. | |
* | |
* Leverages the default Drupal cache bin system for caching Guzzle responses. | |
*/ | |
class DrupalCacheAdapter implements CacheAdapterInterface { | |
/** |
OlderNewer