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
diff --git a/src/Generators/Google.php b/src/Generators/Google.php | |
index 5ff4fe6..0acfa41 100644 | |
--- a/src/Generators/Google.php | |
+++ b/src/Generators/Google.php | |
@@ -21,10 +21,8 @@ public function generate(Link $link): string | |
{ | |
$url = 'https://calendar.google.com/calendar/render?action=TEMPLATE'; | |
- $utcStartDateTime = (clone $link->from)->setTimezone(new DateTimeZone('UTC')); | |
- $utcEndDateTime = (clone $link->to)->setTimezone(new DateTimeZone('UTC')); |
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 | |
namespace Drupal\f_search\Plugin\search_api\processor; | |
use Drupal\Component\Utility\Html; | |
use Drupal\Core\Form\FormStateInterface; | |
use Drupal\Core\Plugin\PluginFormInterface; | |
use Drupal\search_api\IndexInterface; | |
use Drupal\search_api\Plugin\PluginFormTrait; | |
use Drupal\search_api\Processor\ProcessorPluginBase; |
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 | |
namespace Drupal\mymodule\Plugin\search_api\processor; | |
use Drupal\search_api\Plugin\search_api\processor\Highlight; | |
/** | |
* Extends Search API default Highlight processor. | |
*/ | |
class SolrHighlight extends Highlight { |
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 | |
/** | |
* Implements hook_theme_element_info_alter(). | |
*/ | |
function mytheme_element_info_alter(array &$info) { | |
if (isset($info['processed_text'])) { | |
$info['processed_text']['#pre_render'][] = '_mytheme_pre_render_element_processed_text'; | |
} | |
} |
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 = db_select('field_data_body', 'cur'); | |
$query->join('field_revision_body', 'rev', 'rev.entity_id = cur.entity_id AND rev.revision_id = cur.revision_id'); | |
$query->where('rev.body_value != cur.body_value') | |
->fields('cur'); | |
$results = $query->execute()->fetchAllAssoc('entity_id'); | |
foreach ($results as $result) { | |
$entity_type = $result->entity_type; |
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 | |
* Contains hooks for Views. | |
*/ | |
use Drupal\migrate\Plugin\migrate\id_map\Sql; | |
/** |
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
/** | |
* Creates a vocabulary given a machine name if it doesn't exist yet. | |
* | |
* @param string $machine_name | |
* The machine name of the vocabulary. | |
* | |
* @return object | |
* A vocabulary object. | |
*/ | |
function _mymodule_create_vocabulary($machine_name) { |