You are here

public function LayoutParagraphsLayout::isEmpty in Layout Paragraphs 2.0.x

Determines whether the reference field contains any non-empty items.

Return value

bool TRUE if the list is empty, FALSE otherwise.

File

src/LayoutParagraphsLayout.php, line 279

Class

LayoutParagraphsLayout
Provides a domain object for a complete Layout Paragraphs Layout.

Namespace

Drupal\layout_paragraphs

Code

public function isEmpty() {
  return $this->paragraphsReferenceField
    ->isEmpty();
}