daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $fields['internal_description'] = BaseFieldDefinition::create('text_long')
  2.   ->setLabel(t('Internal description'))
  3.   ->setSettings(array(
  4.     'max_length' => 1500,
  5.   ))
  6.    
  7. {{  event.getExternalDescription }}
  8.    
  9. {{  event.getExternalDescription | raw }}
  10.    
  11. $build = [
  12.     '#type' => 'processed_text',
  13.     '#text' => '<p>Hello world</p>',
  14.     '#format' => 'full_html',
  15.   ];
  16.    
  17. {% set build = {
  18.     '#type':   'processed_text',
  19.     '#text':    event.getExternalDescription,
  20.     '#format': 'full_html',
  21.   } %}
  22.  
  23.   {{ build }}
  24.    
  25. {{ item.entity.field_innerfieldname.value|t() }}
  26.    
  27. {% for item in content['#node'].field_paragraph_items %}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top