Skip to content

Instantly share code, notes, and snippets.

View cyberlex404's full-sized avatar
🏠
Working from home

Lex Misiuro cyberlex404

🏠
Working from home
View GitHub Profile
<?php
namespace Drupal\housing\Plugin\RulesAction;
use Drupal\housing\Entity\HousingPageInterface;
use Drupal\node\NodeInterface;
use Drupal\rules\Core\RulesActionBase;
/**
* Provides a 'Housing Path Update' action.
<?php
namespace Drupal\expert_questions\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher;
/**
<VirtualHost %ip%:%web_ssl_port%>
ServerName %domain_idn%
%alias_string%
ServerAdmin %email%
DocumentRoot %sdocroot%
ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
Alias /vstats/ %home%/%user%/web/%domain%/stats/
Alias /error/ %home%/%user%/web/%domain%/document_errors/
#SuexecUserGroup %user% %group%
yamapsapi.geometry.*:
type: config_entity
label: 'Geometry'
mapping:
id:
type: string
label: 'ID'
label:
type: label
label: 'Label'
@cyberlex404
cyberlex404 / HolidayStructure.php
Created August 22, 2017 22:56
Administration page
<?php
namespace Drupal\home_holiday\Controller;
use Drupal\Core\Controller\ControllerBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\system\SystemManager;
/**
* Class HolidayStructure.
<?php
/**
* @file
* Contains campings.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
<?php
/**
* @file
* Contains \Drupal\pureworld\Plugin\Setting\Pureworld\FirstScreen.
*/
namespace Drupal\pureworld\Plugin\Setting\Pureworld\FirstScreen;
use Drupal\bootstrap\Plugin\Setting\SettingBase;
<?php
/**
* @file
* Contains holiday_offers.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
<?php
namespace Drupal\dump_map\Entity;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\Core\Entity\ContentEntityBase;
use Drupal\Core\Entity\EntityChangedTrait;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\user\UserInterface;
<?php
namespace Drupal\vk_review;
use Drupal\Component\Serialization\Json;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\RequestException;
use Psr\Log\LoggerInterface;