You are here

public function TwitterWidget::isPublished in Twitter Profile Widget 8

Returns the Twitter widget published status indicator.

Unpublished Twitter widget are only visible to restricted users.

Return value

bool TRUE if the Twitter widget is published.

Overrides TwitterWidgetInterface::isPublished

File

src/Entity/TwitterWidget.php, line 134

Class

TwitterWidget
Defines the Twitter widget entity.

Namespace

Drupal\twitter_profile_widget\Entity

Code

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