- Open format editor of your preference admin/config/content/formats/manage/basic_html
- Add styles BUTTON (Drag and drop)
- A new tab will be created "Styles Dropdown"
- Click on "Styles Dropdown" tab
- Add ul.two-column--list|Two column list
- (HIGHLY IMPORTANT) if you have have "Limit allowed HTML tags and correct faulty HTML" then Make sure
- is added, IF NOT PLEASE add it.
- Save it!
- Add ul.two-column--list { columns: 2; } in your current theme. Ckeditor automatically will find it.
- Now create a content and locate on a textarea formatter field
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
| name: 'sandwich' | |
| type: module | |
| description: 'Example plugin type' | |
| core: 8.x | |
| package: 'Custom' |
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
| #!/bin/bash | |
| while true | |
| do | |
| cd ~/projects/XXX/ && git pull origin master | |
| sleep 60 | |
| done |
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.form-submit.button-small { | |
| padding: 4px 8px; | |
| font-weight: bold; | |
| } | |
| .container-inline input.form-submit.button-small + .ajax-progress.ajax-progress-throbber .throbber { | |
| position: absolute; | |
| left: 19px; | |
| margin-top: 7px; | |
| } |
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.form-submit.button-small { | |
| padding: 4px 8px; | |
| font-weight: bold; | |
| } | |
| .container-inline input.form-submit.button-small + .ajax-progress.ajax-progress-throbber .throbber { | |
| position: absolute; | |
| left: 19px; | |
| margin-top: 7px; | |
| } |
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 | |
| /** | |
| * Update field data table and configuration storage | |
| */ | |
| function _update_field_data( | |
| $entityType, | |
| $field, | |
| $valueMapping, |
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 | |
| // Introduce the class into your scope. | |
| use KamranAhmed\Geocode\Geocode; | |
| // Optionally you can pass the API key for Geocoding. | |
| $geocode = new Geocode(); | |
| // Get the details for the passed address. |
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 | |
| /** | |
| * Converts integer to Roman. | |
| * | |
| * @param int $integer | |
| * Integer to be converted to Roman string. | |
| * | |
| * @return string | |
| */ | |
| public function integerToRoman($integer) { |
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 | |
| $formIds = [ | |
| 'node_location_form', | |
| 'node_location_edit_form', | |
| ]; | |
| if (in_array($form_id, $formIds)) { | |
| $form['#attached']['library'][] = 'care_location/care_location_node_form'; | |
| $form['field_location_google_streetview']['#states'] = [ | |
| 'visible' => [ | |
| ':input[name="field_location_what_to_display"]' => ['value' => 'field_location_google_streetview'], |
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\ship_package\Form; | |
| use Drupal\Core\Url; | |
| use Drupal\Core\Ajax\AjaxResponse; | |
| use Drupal\Core\Ajax\HtmlCommand; | |
| use Drupal\taxonomy\Entity\Term; | |
| use Drupal\Core\Form\FormBase; | |
| use Drupal\Core\Form\FormStateInterface; |