This file contains 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
(function ($) { | |
'use strict'; | |
Drupal.behaviors.myexposedfilterajax = { | |
attach: function (context) { | |
// On change of the main filter select list. | |
$('.master-select-list select').change(function (event) { | |
event.preventDefault(); | |
var selectedCategory = $(this).find(":selected").val(); | |
var endpoint = Drupal.url(mycustom/filter/ajax/' + selectedCategory); | |
Drupal.ajax({ url: endpoint }).execute(); |
This file contains 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
services: | |
ct_user.ct_user_social_event_listener: | |
class: Drupal\ct_user\EventSubscriber\ContribTrackerEventListener | |
arguments: ['@logger.factory'] | |
tags: | |
- { name: event_subscriber } |
This file contains 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\ct_user\EventSubscriber; | |
use Drupal\Core\Logger\LoggerChannelFactoryInterface; | |
use Drupal\social_auth\Event\SocialAuthEvents; | |
use Drupal\social_auth\Event\UserFieldsEvent; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
/** |
This file contains 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\rest_login_addons; | |
use Drupal\Core\Routing\RouteSubscriberBase; | |
use Symfony\Component\Routing\RouteCollection; | |
/** | |
* Class PIcoreRouteSuscriber. | |
*/ |
This file contains 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
services: | |
rest_login_addons.route_subscriber: | |
class: Drupal\rest_login_addons\RestLoginAddonsRouteSuscriber | |
tags: | |
- { name: event_subscriber } |
This file contains 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\rest_login_addons\Controller; | |
use Drupal\Core\Access\CsrfTokenGenerator; | |
use Drupal\Core\Entity\EntityTypeManagerInterface; | |
use Drupal\Core\Flood\FloodInterface; | |
use Drupal\Core\Routing\RouteProviderInterface; | |
use Drupal\user\Controller\UserAuthenticationController; | |
use Drupal\user\UserAuthInterface; |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Copy the samples below into your own phpunit.xml file.--> | |
<!-- Using this project's bootstrap file allows tests in `ExistingSite`, | |
`ExistingSiteSelenium2DriverTest`, and `ExistingSiteWebDriverTest` | |
to run alongside core's test types. --> | |
<phpunit bootstrap="vendor/weitzman/drupal-test-traits/src/bootstrap-fast.php"> | |
<php> | |
<env name="DTT_BASE_URL" value="SITE_BASE_URL"/> |
This file contains 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
./vendor/phpunit/phpunit/phpunit --bootstrap ./web/core/tests/bootstrap.php --configuration ./phpunit.xml \Drupal\Tests\contrib_tracker\ExistingSite\ContribTrackerTraitest ./tests/src/Functional/HomePageViewDisplayTest.php |
This file contains 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
drupal_test_traits: | |
image: juampynr/drupal8ci:latest | |
stage: test | |
services: | |
- mysql:5.7 | |
variables: | |
SITE_BASE_URL: 'http://localhost' | |
MYSQL_DATABASE: "contrib" | |
MYSQL_ROOT_PASSWORD: "contrib123" |
NewerOlder