You are here

public function Profile::isActive in Profile 8

Gets whether the profile is active.

Unpublished profiles are only visible to their authors and administrators.

Return value

bool TRUE if the profile is active, FALSE otherwise.

Overrides ProfileInterface::isActive

Deprecated

in Profile 1.0-rc4. Use ::isPublished instead.

File

src/Entity/Profile.php, line 107

Class

Profile
Defines the profile entity class.

Namespace

Drupal\profile\Entity

Code

public function isActive() {
  return $this
    ->isPublished();
}