You are here

public function LayoutParagraphsComponent::isRoot in Layout Paragraphs 2.0.x

A "root" component is rendered at the top level.

Return value

bool True if component is a root element.

File

src/LayoutParagraphsComponent.php, line 110

Class

LayoutParagraphsComponent
Provides a domain object for a single Layout Paragraphs Component.

Namespace

Drupal\layout_paragraphs

Code

public function isRoot() {
  return !$this
    ->getParentUuid() && !$this
    ->isDisabled();
}