public static function LayoutParagraphsComponent::isLayoutComponent in Layout Paragraphs 2.0.x
Static wrapper for isLayout().
Parameters
Drupal\paragraphs\Entity\Paragraph $paragraph: The paragraph to check if is layout.
Return value
bool True if paragraph is a layout.
1 call to LayoutParagraphsComponent::isLayoutComponent()
- LayoutParagraphsRendererService::renderLayoutSection in src/
LayoutParagraphsRendererService.php - Renders a single Layout Paragraph Section for the provided paragraph.
File
- src/
LayoutParagraphsComponent.php, line 55
Class
- LayoutParagraphsComponent
- Provides a domain object for a single Layout Paragraphs Component.
Namespace
Drupal\layout_paragraphsCode
public static function isLayoutComponent(Paragraph $paragraph) {
$instance = new static($paragraph);
return $instance
->isLayout();
}