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 | |
/** | |
* @file | |
* Primary module hooks for alter_custom_text_views_field module. | |
* | |
* To use in a module called "alter_custom_text_views", in Drupal 8. | |
* | |
* @DCG | |
* This file is no longer required in Drupal 8. |
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
#!/bin/bash | |
machinename="ubuntu" | |
# Help menu | |
print_help() { | |
cat <<-HELP | |
First, copy both .sh files to the LXC machine folder, next edit and configure the machine name in each. |
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
/** | |
* Tiny function for basic query string parsing. | |
* | |
* @see https://davidwalsh.name/query-string-javascript | |
* | |
* @param name | |
* Parameter name. | |
* @param url | |
* Url where search. | |
* |
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 | |
$query = \Drupal::entityQuery('cub'); | |
$result = $query->execute(); | |
$entidadesIDs = array_values($result); | |
// object $entidad con todas los registros guardasdos de cub | |
$entidades = entity_load_multiple('cub', $entidadesIDs); | |
?> | |
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
/** | |
* Alter the Views data for a single Field API field. | |
* | |
* Implements hook_field_views_data_alter(). | |
* | |
* @see https://www.drupal.org/project/drupal/issues/2851325 | |
*/ | |
function turismo_customization_field_views_data_alter(array &$data, FieldStorageConfigInterface $field_storage) { | |
// $data = views_field_default_views_data($field_storage); |
NewerOlder