- Issue created by @rakesh.gectcr
- 🇳🇱Netherlands basvredeling Amsterdam
Thanks for reporting @rakesh.gectcr
The patch in #2 won't work I'm afraid. There is no \Drupal\paragraphs_plus\Entity\Paragraph class. I think checking for an instance of Drupal\paragraphs\Entity\Paragraph would be better. - Merge request !22Issue #3481044 by rakesh.gectcr, basvredeling: TypeError:... → (Merged) created by basvredeling
-
basvredeling →
committed 39419b5b on 4.x
Issue #3481044 by rakesh.gectcr: TypeError: Drupal\paragraph_blocks\...
-
basvredeling →
committed 39419b5b on 4.x
- 🇳🇱Netherlands basvredeling Amsterdam
@rakesh.gectcr please use the latest 4.x-dev to fix this issue. If that works well for you, I'll create a new release with this fix.
- 🇬🇧United Kingdom rakesh.gectcr Manchester
@basvredeling
following code from
/** * Check if this paragraph is from the paragraphs library. * * This is only relevant if the paragraphs_library module is enabled. * * @param \Drupal\paragraphs\Entity\Paragraph $paragraph * The paragraph block entity. * * @return bool * True if paragraph is promoted to the paragraphs library. */ public function isParagraphFromLibrary(Paragraph $paragraph ): bool { return $paragraph->bundle() === 'from_library'; }
from 4.x branch is working fine.
- 🇳🇱Netherlands basvredeling Amsterdam
Thanks @rakesh, this is now part of the 4.1.3 release.