$bid = 'myblock';
$block = \Drupal\block_content\Entity\BlockContent::load($bid);
$render = \Drupal::entityTypeManager()->getViewBuilder('block_content')->view($block);
$block_manager = \Drupal::service('plugin.manager.block');
diff --git a/modules/cohesion_elements/cohesion_elements.module b/modules/cohesion_elements/cohesion_elements.module | |
index 8e0caa5..633a19e 100644 | |
--- a/modules/cohesion_elements/cohesion_elements.module | |
+++ b/modules/cohesion_elements/cohesion_elements.module | |
@@ -110,10 +110,10 @@ function cohesion_elements_library_info_alter(&$libraries, $extension) { | |
$library_id = 'custom-component-' . str_replace('_', '-', $id); | |
// Build the library | |
if (!empty($component['css'])) { | |
- $libraries[$library_id]['css']['component'] = _component_build_library($component['css'], $component['subpath']); | |
+ $libraries[$library_id]['css']['component'] = _cohesion_elements_component_build_library($component['css'], $component['subpath']); |