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
| diff --git a/modules/custom/et_homepage/src/Controller/ETHomepageController.php b/modules/custom/et_homepage/src/Controller/ETHomepageController.php | |
| index 1abf00c..c852ab4 100644 | |
| --- a/modules/custom/et_homepage/src/Controller/ETHomepageController.php | |
| +++ b/modules/custom/et_homepage/src/Controller/ETHomepageController.php | |
| @@ -92,7 +92,15 @@ public function homepage() { | |
| $build->setLayoutId('home'); | |
| $build->setVariant($elements); | |
| - return $build->build(); | |
| + $regions = $build->build(); |
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 | |
| function controller() { | |
| $build = [...]; | |
| $render_context = new \Drupal\Core\Render\RenderContext(); | |
| /** @var \Drupal\Core\Render\RendererInterface $render */ | |
| $renderer = \Drupal::service('renderer'); | |
| $result = $renderer->executeInRenderContext($render_context, function() use ($renderer, $build) { |
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
| ], | |
| "vid": [ | |
| { | |
| "value": "52" | |
| } | |
| ] | |
| } | |
| ~/w/d8 (8.2.x) $ http get d8.dev/entity/node/52 _format==hal_json | |
| HTTP/1.1 404 Not Found |
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 | |
| db_update('languages') | |
| ->fields(['domain' => '']) | |
| ->execute(); |
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
| Drupal test run | |
| --------------- | |
| Tests to be run: | |
| - Drupal\Tests\field_encrypt\Unit\EncryptedFieldValueManagerTest | |
| - Drupal\Tests\field_encrypt\Unit\FieldEncryptProcessEntitiesTest | |
| - Drupal\field_encrypt\Tests\FieldEncryptCacheTest | |
| - Drupal\field_encrypt\Tests\FieldEncryptTest |
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
| #drupalorg-site-status { | |
| display: none; | |
| } | |
| #page { | |
| min-width: 1040px !important; | |
| } | |
| .container-12 { | |
| min-width: 1040px !important; | |
| } |
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
| homebrew/php/php53-solr | |
| homebrew/php/php54-solr | |
| homebrew/php/php55-solr | |
| homebrew/php/php56-solr | |
| homebrew/versions/solr14 | |
| homebrew/versions/solr36 | |
| homebrew/versions/solr4 | |
| solr |
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
| >>> \Drupal\Component\Utility\UrlHelper::buildQuery(['foo']) | |
| => "0=foo" | |
| >>> \Drupal\Component\Utility\UrlHelper::buildQuery(['foo' => NULL]) | |
| => "foo" | |
| >>> \Drupal\Component\Utility\UrlHelper::buildQuery(['foo' => TRUE]) | |
| => "foo=1" | |
| >>> |
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 muh_entity_bundle_field_info(EntityTypeInterface $entity_type, $bundle, array $base_field_definitions) { | |
| $fields = []; | |
| if ($entity_type->id() !== 'entity_log') { | |
| return $fields; | |
| } | |
| if ($bundle == 'muh') { | |
| $fields['field_base_url'] = BundleFieldStorageDefinition::create('string') | |
| ->setTargetEntityTypeId('entity_log') | |
| ->setTargetBundle('my_bundle') |
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 tag1_updates_get_patches_this_site_needs(NodeInterface $site) { | |
| $site = D6LtsSite::fromNode($site); | |
| $lts_projects = $site->getLtsProjects(); | |
| $releases_per_lts_project = array_map(function (D6LtsProjectInstance $lts_project) { | |
| return $lts_project->getSecurityReleases(); | |
| }, $lts_projects); | |
| // Flatten the releases to a 1d array. | |
| $releases = iterator_to_array(new \RecursiveIteratorIterator(new \RecursiveArrayIterator($releases_per_lts_project)), FALSE); |