Fork your own copy of the DrupalConsole repository to your account
Get a copy of your recently cloned version of console in your machine.
$ git clone git@github.com:[your-git-user-here]/drupal-console.git
Fork your own copy of the DrupalConsole repository to your account
Get a copy of your recently cloned version of console in your machine.
$ git clone git@github.com:[your-git-user-here]/drupal-console.git
Please give us a detailed overview of your session and why attendees will be excited to hear about it.
In this session, I will share my experience with attendees about a very common situation most of us encounter while performing our daily tasks on our jobs: Adding custom functionality for a Drupal 8 project.
I was recently in this predicament, where you can just add the specific functionality for your client, or go the contribution path: Making the use case more universal, so other people can benefit from the code that you are about to write.
The requirement was the following: One of our clients wanted to allow his users to create support tickets using the JIRA platform using a form seamlessly integrated within the website.
diff --git a/modules/social_features/social_core/social_core.module b/modules/social_features/social_core/social_core.module | |
index 8e35646..e523b32 100644 | |
--- a/modules/social_features/social_core/social_core.module | |
+++ b/modules/social_features/social_core/social_core.module | |
@@ -94,11 +94,28 @@ function template_preprocess_page_hero_data(array &$variables) { | |
if (!empty($node->{$image_field}->entity)) { | |
$variables['hero_styled_image_url'] = ImageStyle::load('social_xx_large') | |
->buildUrl($node->{$image_field}->entity->getFileUri()); | |
+ } else { // If machine name too long or using another image field | |
+ $node_fields = $node->getFields(); |
#!/bin/bash | |
set -e | |
########################################################## | |
# Install script for Docker-CE on ElementaryOS Juno | |
# Had to update the repository to point to bionic instead | |
# of using 'lsb_release -cs' because there's no juno | |
# repository at download.docker.com. | |
########################################################## |
# If using linux remember to set or uncomment | |
# PHP_XDEBUG_REMOTE_HOST=172.17.0.1 | |
# on your .env file | |
version: "2" | |
services: | |
mariadb: | |
image: wodby/mariadb:$MARIADB_TAG | |
container_name: "${PROJECT_NAME}_mariadb" |