This file contains hidden or 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
| <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: Lex | |
| * Date: 03.10.2017 | |
| * Time: 0:26 | |
| */ | |
| namespace Drupal\housing_sync\Plugin\QueueWorker; |
This file contains hidden or 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
| <?php | |
| namespace Drupal\housing\Entity; | |
| use Drupal\views\EntityViewsData; | |
| /** | |
| * Provides Views data for Housing entities. | |
| */ | |
| class HousingViewsData extends EntityViewsData { |
This file contains hidden or 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
| <?php | |
| namespace Drupal\views\Plugin\views\relationship; | |
| use Drupal\views\Plugin\ViewsHandlerManager; | |
| use Drupal\views\Views; | |
| use Symfony\Component\DependencyInjection\ContainerInterface; | |
| /** | |
| * A relationship handlers which reverse entity references. |
This file contains hidden or 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
| <?php | |
| namespace Drupal\housing\Entity; | |
| use Drupal\views\EntityViewsData; | |
| /** | |
| * Provides Views data for Housing entities. | |
| */ | |
| class HousingViewsData extends EntityViewsData { |
This file contains hidden or 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
| commands: | |
| aliases: | |
| debug:container: | |
| - cod | |
| config:edit: | |
| - cdit | |
| cron:execute: | |
| - cre | |
| cron:release: | |
| - crr |
This file contains hidden or 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
| <?php | |
| /** | |
| * Implements hook_form_alter(). | |
| */ | |
| function extra_form_alter(&$form, &$form_state, $form_id) { | |
| if ( isset($_GET['show']) && $_GET['show'] != '' ) { | |
| $nid = $_GET['show']; | |
| } | |
| if ($form_id == 'webform_client_form_140') { |
This file contains hidden or 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
| <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: Lex | |
| * Date: 20.10.2017 | |
| * Time: 11:47 | |
| */ | |
| /** | |
| * Implements hook_menu(). |
This file contains hidden or 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 www-data; | |
| worker_processes auto; | |
| pid /run/nginx.pid; | |
| events { | |
| worker_connections 768; | |
| # multi_accept on; | |
| } | |
| http { |
This file contains hidden or 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
| /** | |
| * AJAX process step | |
| */ | |
| public function processStep(array &$form, FormStateInterface $form_state) { | |
| $ajax_response = new AjaxResponse(); | |
| $ajax_response->addCommand(new ReplaceCommand( | |
| 'h1.page-title', | |
| '<h1 class="page-title">' . $this->getTitle() . '</h1>' | |
| )); |
This file contains hidden or 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
| <?php | |
| use Drupal\Core\Form\FormStateInterface; | |
| use Drupal\Core\Url; | |
| use Drupal\Component\Render\FormattableMarkup; | |
| /** | |
| * Implements hook_form_BASE_FORM_ID_alter(). | |
| */ | |
| function MODULE_form_user_login_form_alter(&$form, FormStateInterface $form_state, $form_id) { |