You are here

public function UserProfilePage::summary in Context 8.4

Provides a human readable summary of the condition's configuration.

Overrides ConditionInterface::summary

File

src/Plugin/Condition/UserProfilePage.php, line 136

Class

UserProfilePage
Provides a 'User profile page status' condition.

Namespace

Drupal\context\Plugin\Condition

Code

public function summary() {
  if (empty($this->configuration['user_status'])) {
    return $this
      ->t('No user status field is selected.');
  }
  return t('Select user profile page status');
}