You are here

public function ParagraphSet::isPublished in Paragraphs frontend ui 8

Returns the Paragraph set published status indicator.

Unpublished Paragraph set are only visible to restricted users.

Return value

bool TRUE if the Paragraph set is published.

Overrides ParagraphSetInterface::isPublished

File

src/Entity/ParagraphSet.php, line 136

Class

ParagraphSet
Defines the Paragraph set entity.

Namespace

Drupal\paragraphs_frontend_ui\Entity

Code

public function isPublished() {
  return (bool) $this
    ->getEntityKey('status');
}