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\address\Plugin\search_api\processor; | |
use Drupal\Component\Utility\Html; | |
use Drupal\Component\Render\FormattableMarkup; | |
use Drupal\Core\Form\FormStateInterface; | |
use Drupal\search_api\Processor\FieldsProcessorPluginBase; | |
/** |
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
function deparam(params, coerce) { | |
var obj = {}, coerce_types = { 'true': !0, 'false': !1, 'null': null }; | |
// Iterate over all name=value pairs. | |
$.each(params.replace( /\+/g, ' ').split('&'), function(j, v) { | |
var param = v.split('='), | |
key = decodeURIComponent(param[0]), | |
val, | |
cur = obj, | |
i = 0, |
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 | |
public function simple() { | |
$is_authenticated = \Drupal::currentUser()->isAuthenticated(); | |
$content = 'Hello World'; | |
$build = [ | |
'#theme' => 'page_example_map_it', | |
'#is_authenticated' => $is_authenticated, | |
'#action_form' => $content, | |
'#cache' => [ |
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
<input type="search" id="autocomplete-dataset" class="form-control" placeholder="Search for vacation rentals or cities" /> | |
<script src="https://cdn.jsdelivr.net/algoliasearch/3/algoliasearchLite.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/autocomplete.js/0/autocomplete.js"></script> | |
<style> | |
.algolia-autocomplete { | |
width: 100%; | |
} | |
.ad-example-dropdown-menu { | |
width: 100%; |
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
leaflet: | |
js: | |
/libraries/vendor/leaflet/leaflet.js: {} | |
css: | |
component: | |
/libraries/vendor/leaflet/leaflet.css: {} |
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
field_drupal8_pages: | |
plugin: migration | |
migration: ya_node_page | |
source: field_drupal6_pages | |
field_drupal8_xxx: | |
plugin: migration | |
migration: | |
- ya_node_xy | |
- ya_node_xx |
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
langcode: en | |
status: true | |
dependencies: { } | |
id: ya_node_article | |
migration_tags: null | |
migration_group: ya_example | |
label: 'Nodes (Article)' | |
source: | |
plugin: d7_node | |
node_type: article |
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
langcode: en | |
status: true | |
dependencies: { } | |
id: ya_node_article | |
migration_tags: null | |
migration_group: ya_example | |
label: 'Nodes (Article)' | |
source: | |
plugin: d7_node | |
node_type: article |
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
langcode: en | |
status: true | |
dependencies: { } | |
id: taxonomy_term | |
migration_group: carlyle | |
label: 'Taxonomy terms' | |
source: | |
plugin: d7_taxonomy_term | |
process: | |
tid: tid |
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
field_asset_geofield: | |
plugin: geofield_latlon | |
source: field_cap_geofield |