public function mapParagraphField(array $paragraphs) {
    $entities = \Drupal::classResolver()->getInstanceFromDefinition(InstallHelper::class)->importParagraphs($paragraphs);
    if (!empty($entities)) {
      return $entities;
    }
    return [];
  }
public function mapParagraphField(array $paragraphs) {
    $entities = \Drupal::classResolver()->getInstanceFromDefinition(InstallHelper::class)->importParagraphs($paragraphs);
    if (!empty($entities)) {
      return $entities;
    }
    return [];
  }
public function mapParagraphField ( array $ paragraphs ) { $ entities = \ Drupal :: classResolver ( ) -> getInstanceFromDefinition ( InstallHelper :: class ) -> importParagraphs ( $ paragraphs ) ; if ( ! empty ( $ entities ) ) { return $ entities ; } return [ ] ; }
Maps a paragraph field.

@param array $paragraphs
An array of paragraph machine names.

@return array
An array of entities.
Maps a paragraph field .