How do I access the paragraph value? In 1 node. I'm using multiple paragraph type &amp; within that I have fields.

Paragraph 1 -&gt; field_title, field_time
Paragraph 2 -&gt; field_test


How to access Node's Paragraph 2 -> field_test value?
Need to add below code in your theme file

themename.theme

/**
 * Implements hook_preprocess_node().
 */
function theme_preprocess_node(array &amp;$variables) {
  $node = $variables['node'];
  switch ($node-&gt;getType()) {
    case 'article':
      $my_paragraph = null;
      foreach ($node-&gt;get('field_content') as $paragraph) {
        if ($paragraph-&gt;entity-&gt;getType() == 'my_paragraph') { // Change to your paragraph type
          $my_paragraph = $paragraph-&gt;entity;
        }
      }

      if (!empty($my_paragraph)) {
        $variable['test'] = $my_paragraph-&gt;field_test-&gt;value;
      }

      break;
  }
}