Skip to content

Instantly share code, notes, and snippets.

Pol Dellaiera drupol

Block or report user

Report or block drupol

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View RecursiveSearchFilter.php
<?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
View CustomFilter.php
<?php
declare(strict_types = 1);
namespace App\Doctrine\Orm\Filter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface;
use Doctrine\Common\Persistence\Mapping\ClassMetadata;
use Doctrine\ORM\QueryBuilder;
View test.php
<?php
declare(strict_types = 1);
use drupol\phptree\Node\ValueNode;
use drupol\launcher\Launcher;
use drupol\phptree\Exporter\Image;
include './vendor/autoload.php';
@drupol
drupol / test.php
Last active Jul 1, 2019
PHPTree and PHPVfs - import a real filesystem, export it as a graphviz script, display it.
View test.php
<?php
declare(strict_types = 1);
require_once 'vendor/autoload.php';
use drupol\phpvfs\Importer\Filesystem;
use drupol\phpvfs\Exporter\GvDisplay;
// Create the importer object.
View phptree.php
<?php
declare(strict_types = 1);
use drupol\phptree\Node\ValueNode;
include './vendor/autoload.php';
$flat = [
['id' => 1, 'parent' => null],
View backdrop-conventions.patch
diff --git a/BackdropBoot.php b/BackdropBoot.php
index 44f2feb..12b633d 100644
--- a/BackdropBoot.php
+++ b/BackdropBoot.php
@@ -8,30 +8,6 @@ namespace Drush\Boot;
class BackdropBoot extends BaseBoot {
- /**
- * Set up and test for a valid Backdrop root, either through the -r/--root
View item_list.component.inc
<?php
/**
* @file
* Contains component file.
*/
/**
* Implements hook_atomium_theme_hook().
*/
View 390.patch
diff --git a/atomium/template.php b/atomium/template.php
index f0c8116..1cb5203 100644
--- a/atomium/template.php
+++ b/atomium/template.php
@@ -116,24 +116,6 @@ function _atomium_overview_component_single_load_component($_component_name) {
return NULL;
}
-/**
- * Implements hook_atomium_theme_hook().
View element_info.inc
<?php
function atomium_element_info_alter(array &$types) {
foreach ($types as $type => $type_info) {
if (!isset($type_info['#theme_wrappers'])) {
continue;
}
foreach ((array) $type_info['#theme_wrappers'] as $key => $theme_wrapper) {
if ($type_info['#type'] === $theme_wrapper) {
View template.php
<?php
/**
* @file
* template.php
*/
function atomium_bartik_preprocess_item_list__pager(array &$variables, $hook) {
dpm($variables, __FUNCTION__);
You can’t perform that action at this time.