You are here

public function AuthorizationProfile::checkConditions in Authorization 8

Check if the profile is available.

Return value

bool Profile valid.

File

src/Entity/AuthorizationProfile.php, line 396

Class

AuthorizationProfile
Defines the Authorization profile entity.

Namespace

Drupal\authorization\Entity

Code

public function checkConditions() : bool {
  if (!$this
    ->get('status')) {
    return FALSE;
  }
  if (!$this
    ->getProvider()) {
    return FALSE;
  }
  if (!$this
    ->getConsumer()) {
    return FALSE;
  }
  return TRUE;
}