You are here

public function SocialEventAnEnrollViewsBulkOperationsBulkForm::getEntityLabel in Open Social 8.5

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_event/modules/social_event_an_enroll/src/Plugin/views/field/SocialEventAnEnrollViewsBulkOperationsBulkForm.php \Drupal\social_event_an_enroll\Plugin\views\field\SocialEventAnEnrollViewsBulkOperationsBulkForm::getEntityLabel()
  2. 8.6 modules/social_features/social_event/modules/social_event_an_enroll/src/Plugin/views/field/SocialEventAnEnrollViewsBulkOperationsBulkForm.php \Drupal\social_event_an_enroll\Plugin\views\field\SocialEventAnEnrollViewsBulkOperationsBulkForm::getEntityLabel()
  3. 8.7 modules/social_features/social_event/modules/social_event_an_enroll/src/Plugin/views/field/SocialEventAnEnrollViewsBulkOperationsBulkForm.php \Drupal\social_event_an_enroll\Plugin\views\field\SocialEventAnEnrollViewsBulkOperationsBulkForm::getEntityLabel()
  4. 8.8 modules/social_features/social_event/modules/social_event_an_enroll/src/Plugin/views/field/SocialEventAnEnrollViewsBulkOperationsBulkForm.php \Drupal\social_event_an_enroll\Plugin\views\field\SocialEventAnEnrollViewsBulkOperationsBulkForm::getEntityLabel()
  5. 10.3.x modules/social_features/social_event/modules/social_event_an_enroll/src/Plugin/views/field/SocialEventAnEnrollViewsBulkOperationsBulkForm.php \Drupal\social_event_an_enroll\Plugin\views\field\SocialEventAnEnrollViewsBulkOperationsBulkForm::getEntityLabel()
  6. 10.0.x modules/social_features/social_event/modules/social_event_an_enroll/src/Plugin/views/field/SocialEventAnEnrollViewsBulkOperationsBulkForm.php \Drupal\social_event_an_enroll\Plugin\views\field\SocialEventAnEnrollViewsBulkOperationsBulkForm::getEntityLabel()
  7. 10.1.x modules/social_features/social_event/modules/social_event_an_enroll/src/Plugin/views/field/SocialEventAnEnrollViewsBulkOperationsBulkForm.php \Drupal\social_event_an_enroll\Plugin\views\field\SocialEventAnEnrollViewsBulkOperationsBulkForm::getEntityLabel()
  8. 10.2.x modules/social_features/social_event/modules/social_event_an_enroll/src/Plugin/views/field/SocialEventAnEnrollViewsBulkOperationsBulkForm.php \Drupal\social_event_an_enroll\Plugin\views\field\SocialEventAnEnrollViewsBulkOperationsBulkForm::getEntityLabel()

Returns modified entity label.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity.

Return value

string The label text.

Overrides SocialEventManagersViewsBulkOperationsBulkForm::getEntityLabel

File

modules/social_features/social_event/modules/social_event_an_enroll/src/Plugin/views/field/SocialEventAnEnrollViewsBulkOperationsBulkForm.php, line 96

Class

SocialEventAnEnrollViewsBulkOperationsBulkForm
Defines the Views Bulk Operations field plugin.

Namespace

Drupal\social_event_an_enroll\Plugin\views\field

Code

public function getEntityLabel(EntityInterface $entity) {

  /** @var \Drupal\social_event\EventEnrollmentInterface $entity */
  if ($this->socialEventAnEnrollManager
    ->isGuest($entity)) {
    return $this->socialEventAnEnrollManager
      ->getGuestName($entity);
  }
  return parent::getEntityLabel($entity);
}