12 lines
		
	
	
		
			250 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			12 lines
		
	
	
		
			250 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| 
								 | 
							
								<?php
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 * Implements hook form alter.
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								function content_block_preview_element_info_alter(array &$types) {
							 | 
						||
| 
								 | 
							
								  if (isset($types['layout_builder'])) {
							 | 
						||
| 
								 | 
							
								    $types['layout_builder']['#attached']['library'][] = 'content_block_preview/assets';
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 |