Skip to content

Instantly share code, notes, and snippets.

@timplunkett
timplunkett / ladder.md
Created April 16, 2019 22:24 — forked from jamtur01/ladder.md
Kickstarter Engineering Ladder
#!/bin/bash
# Use an environment variable to know which branch should be used.
if [ -z "$D8_UPSTREAM_BRANCH" ]; then
echo "Missing the \$D8_UPSTREAM_BRANCH environment variable which must be set to something like '8.7.x'."
exit 1
fi
current_branch=$(git symbolic-ref --short HEAD)
branch=${1:-${D8_UPSTREAM_BRANCH}}
diff --git a/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php b/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
index 6619c580ce..9c605bff01 100644
--- a/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
+++ b/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
@@ -267,7 +267,7 @@ public function buildMultiple(array $entities) {
foreach ($build_list[$id] as $name => $build_part) {
$field_definition = $this->getFieldDefinition($name);
if ($field_definition && $field_definition->isDisplayConfigurable($this->displayContext)) {
- unset($build_list[$id][$name]);
+ $build_list[$id][$name]['#access'] = FALSE;
#!/bin/bash
root=$(drush st --field=root)
if [ $(basename $root) = "web" ]; then
vendor_root=$(dirname $root)
else
vendor_root=$root
fi
keep=0
for arg do
#!/bin/bash
curl -s "https://www.drupal.org/u/$1" | awk -F'/' 'BEGIN{RS="<"} /href="\/user\/[0-9]+/ { print $3; exit }' | { read uid; curl -s "https://www.drupal.org/api-d7/user/$uid.json" | jq .created | sed 's/"//g' | { read created; date -r "$created"; }; }