daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {{ content.field_description }}
  2. {{ content.field_link }}
  3.    
  4. <p>Dramatically create 24/7 paradigms via ubiquitous information. </p>
  5. <a href="some/path/">Read More</a>
  6.    
  7. {{ content.field_description }}
  8.    
  9. <p>Dramatically create 24/7 paradigms via ubiquitous information. <a href="some/path/">Read More</a></p>
  10.    
  11. function mytheme_preprocess_paragraph__plain_text(&$variables) {
  12.   $pr_plain = $variables['elements']['#paragraph'];
  13.   if(!$pr_plain->get('field_link')->isEmpty()) {
  14.     $pr_link_field = $pr_plain->get('field_link')->first();
  15.     $pr_link_uri = $pr_link_field->uri;
  16.     $pr_link_title = $pr_link_field->title;
  17.  
  18.     $pr_description = $pr_plain->get('field_description');
  19.     ksm($pr_description); // this did not provide method or array such as `#suffix`
  20.   }
  21. }
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