Skip to content

Instantly share code, notes, and snippets.

View lussoluca's full-sized avatar

Lusso Luca lussoluca

View GitHub Profile
FROM logstash:1.5
RUN apt-get update && apt-get install -y \
ruby \
git \
vim \
zip \
openssl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
/** @var \Drupal\webprofiler\Profiler\Profiler $profiler */
$profiler = $this->getContainer()->get('profiler');
$tokens = $profiler->find(NULL, NULL, 1000, NULL, '', '');
$forms = [];
foreach ($tokens as $token) {
$profile = $profiler->loadProfile($token);
/** @var \Drupal\webprofiler\DataCollector\FormsDataCollector $form */
$form = $profile->getCollector('forms');
$forms[] = $form->getForms();
/**
* {@inheritdoc}
*
* Uses late static binding to create an instance of this class with
* injected dependencies.
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static(
$configuration,
$plugin_id,
---
title: Chi siamo
---
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu.
In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus.
Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum
sculpin_content_types:
posts:
permalink: blog/:year/:month/:day/:filename/
projects:
type: path
path: _projects
permalink: projects/:filename/
<?php
namespace Drupal\webprofiler\Plugin\RulesExpression;
use Drupal\rules\Engine\RulesState;
use Drupal\rules\Plugin\RulesExpression\Rule;
use Drupal\rules\Plugin\RulesExpressionPluginManager;
use Drupal\webprofiler\DataCollector\RulesDataCollector;
use Symfony\Component\DependencyInjection\ContainerInterface;