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\okgoogle\Controller; | |
use Drupal\Core\Controller\ControllerBase; | |
use Drupal\Core\Logger\LoggerChannelFactoryInterface; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Symfony\Component\HttpFoundation\JsonResponse; | |
use Symfony\Component\HttpFoundation\RequestStack; |
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
okgoogle.test: | |
path: '/ok-google-test' | |
defaults: | |
_controller: '\Drupal\okgoogle\Controller\test::handleRequest' | |
_title: 'Ok Google' | |
requirements: | |
_access: 'TRUE' |
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
server { | |
listen 80; | |
#listen [::]:80 default_server; | |
root /var/www/html/d8/; | |
#root /var/www/ah/4score/4score-may-23-new/html; | |
#root /var/www/ah/4score/4score-pantheon; |
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
# | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
# SSL configuration | |
# | |
# listen 443 ssl default_server; | |
# listen [::]:443 ssl default_server; | |
# |
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 | |
$local_sites = '/var/www/html/'; | |
$scan = scandir($local_sites); | |
unset($scan[0]); | |
unset($scan[1]); | |
foreach($scan as $projects){ | |
$aliases[$projects] = array( | |
'root' => $local_sites . $projects, | |
'path-aliases' => array( | |
'%dump-dir' => $local_sites . 'drush.dbdumps', |
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 | |
/** | |
* @file | |
* settings.local.php. | |
*/ | |
// Local development configuration. | |
if (!defined('PANTHEON_ENVIRONMENT')) { |
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_views_data_alter(). | |
*/ | |
function MODULENAME_views_data_alter(array &$data) { | |
$data['node']['views_field'] = array( | |
'title' => t('views_field'), | |
'field' => array( | |
'title' => t('views_field'), | |
'help' => t('To views_field'), |
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 | |
/** | |
* @file | |
* Contains \Drupal\MOUDULENAME\Plugin\views\field\CategoryReturn. | |
*/ | |
namespace Drupal\MOUDULENAME\Plugin\views\field; | |
use Drupal\Core\Form\FormStateInterface; | |
use Drupal\node\Entity\NodeType; |