Issue #2404673 by vladan.me, Poornima3: Property format.name is now protected
							parent
							
								
									efbaa69a32
								
							
						
					
					
						commit
						c706fd78a3
					
				| 
						 | 
				
			
			@ -117,6 +117,10 @@ class TextFormatElementFormTest extends KernelTestBase implements FormInterface
 | 
			
		|||
    $output = $this->render($form);
 | 
			
		||||
    $this->setRawContent($output);
 | 
			
		||||
    $this->assertFieldByName('textformat[value]');
 | 
			
		||||
    $this->assertRaw('<h4 class="label">Full HTML</h4>');
 | 
			
		||||
    $this->assertRaw('<h4 class="label">Filtered HTML</h4>');
 | 
			
		||||
    $this->assertRaw('<h4 class="label">Test format</h4>');
 | 
			
		||||
    $this->assertNoPattern('|<h4[^>]*></h4>|', 'No empty H4 element found.');
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -26,6 +26,6 @@
 | 
			
		|||
  ]
 | 
			
		||||
%}
 | 
			
		||||
<div{{ attributes.addClass(classes) }}>
 | 
			
		||||
  <h4 class="label">{{ format.name }}</h4>
 | 
			
		||||
  <h4 class="label">{{ format.label }}</h4>
 | 
			
		||||
  {{ tips }}
 | 
			
		||||
</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue