You are here

public function Profile::isActive in Profile 2 8

Returns the node published status indicator.

Unpublished profiles are only visible to their authors and to administrators.

Return value

bool TRUE if the profile is active.

Overrides ProfileInterface::isActive

File

src/Entity/Profile.php, line 252
Contains \Drupal\profile\Entity\Profile.

Class

Profile
Defines the profile entity class.

Namespace

Drupal\profile\Entity

Code

public function isActive() {
  return (bool) $this
    ->get('status')->value;
}