Skip to content

Instantly share code, notes, and snippets.

@DanielVeza
DanielVeza / gist:811150abe0ce4442c8911c81c95982bf
Created October 21, 2019 20:32 — forked from jtdp/gist:5443297
See changes before pulling from remote git repository
# fetch the changes from the remote
git fetch origin
# show commit logs of changes
git log master..origin/master
# show diffs of changes
git diff master..origin/master
# apply the changes by merge..
@DanielVeza
DanielVeza / FallbackAliasStorage.php
Created July 31, 2019 01:48 — forked from mohit-rocks/FallbackAliasStorage.php
Multilingual URL Alias Fallback
<?php
namespace Drupal\my_module;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\Core\Path\AliasStorageInterface;
class FallbackAliasStorage implements AliasStorageInterface {
@DanielVeza
DanielVeza / MyService.php
Created March 18, 2019 00:09 — forked from JeffTomlinson/MyService.php
Drupal 8 Logger Dependency Injection - Currently outdated - Update soon. Comment if interested and I'll speed up :)
<?php
namespace Drupal\my_module\Services;
use Drupal\Core\Logger\LoggerChannelFactory;
/**
* Class MyService.
*
* @package Drupal\my_module\Services