We are using solr for search index.
Solr need to be configured for drupal. Follow the INSTALL.txt found in the search_api_solr
module.
As a pre-requisite for running your own Solr server, you'll need Java 6 or higher.
<?php | |
/** | |
* Debugging using the database connection. | |
*/ | |
/** @var \Drupal\Core\Database\Connection */ | |
$connection = \Drupal::service('database'); | |
$query = $connection->select('node', 'node'); | |
$query->fields('node', ['nid']) |
# Schema for the views plugins. | |
views.filter.project_size_range_select: | |
type: views_filter | |
label: 'Foobar numeric' | |
views.filter_value.project_size_range_select: | |
type: views.filter_value.numeric | |
label: 'Foobar Numeric' |
$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
26137efa979f mysql "docker-entrypoint..." 8 months ago Up 10 minutes 0.0.0.0:3306->3306/tcp container-mysql
$ sudo docker exec container-mysql mysqld --version`
mysqld Ver 5.7.15 for Linux on x86_64 (MySQL Community Server (GPL))
diff --git a/.gitignore b/.gitignore | |
index fc00ed5..ac82bec 100644 | |
--- a/.gitignore | |
+++ b/.gitignore | |
@@ -5,6 +5,7 @@ web/core | |
web/modules/contrib | |
web/themes/contrib | |
web/profiles/contrib | |
+web/libraries | |
Create file at ~/console/chain/generate-controller-form-render.yml
containing:
command:
name: 'generate:controller:form:render'
description: 'Controller + Form generator'
commands:
- command: 'generate:module'
options:
module: example
Array are not object in PHP but PHP does give us some ways to make object that act like arrays. First, there is the ArrayObject class which is pretty close to what you have with a normal array (you can iterate it, use [] etc.) If you use it as a parent for your class you can add methods to it.
class ArrObj extends ArrayObject{
// add methods here
<?php | |
namespace Drupal\my_module\Services; | |
use Drupal\Core\Logger\LoggerChannelFactory; | |
/** | |
* Class MyService. | |
* | |
* @package Drupal\my_module\Services |
drush ev '\Drupal::service("router.builder")->rebuild();' |