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 | |
use Drupal\Core\Config\ConfigImporter; | |
use Drupal\Core\Config\StorageComparer; | |
use Drupal\Core\Config\ConfigException; | |
/** | |
* Imports configurations programmaticaly in Drupal 8. | |
* | |
* Makes the same action as `drush cim -y`. | |
* Based on the code from config.drush.inc:drush_config_import method. |
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 | |
$query = new EntityFieldQuery(); | |
$terms = $query->entityCondition('entity_type', 'taxonomy_term') | |
->entityCondition('bundle', $voc_name) | |
->fieldCondition('field_tags_show_as_filter', 'value', 1) | |
->execute(); | |
$result = array(); | |
if (!empty($terms)) { | |
foreach($terms['taxonomy_term'] as $term) { |
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 | |
* Web analytics. | |
*/ | |
/** | |
* Implements hook_help(). | |
*/ | |
function web_analyt_help($section) { |