Commit 6ffe822e authored by ronaldtebrake's avatar ronaldtebrake Committed by GitHub
Browse files

Merge pull request #2139 from goalgorilla/feature/3186003-content-form-improvements

Issue #3186003 - Improve content form improvements for Book, Page, Event, Topic & Flexible groups.
parents 9ab6c941 b75d8a33
......@@ -3,6 +3,7 @@
namespace Drupal\socialbase\Plugin\Preprocess;
use Drupal\bootstrap\Plugin\Preprocess\PreprocessBase;
use Drupal\Core\Template\Attribute;
/**
* Pre-processes variables for the "details" theme hook.
......@@ -24,6 +25,12 @@ class Details extends PreprocessBase {
$variables['title'] = FALSE;
}
// Lets create body attributes.
if ((isset($variables['body_attributes']) && !$variables['body_attributes'] instanceof Attribute) || !isset($variables['body_attributes'])) {
$variables['body_attributes'] = new Attribute();
$variables['body_attributes']->addClass('panel-body');
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment