public function SocialEventAnEnrollViewsBulkOperationsBulkForm::getEntityLabel in Open Social 8.9
Same name and namespace in other branches
- 8.5 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.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()
- 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()
- 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()
- 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()
- 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()
- 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()
- 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\fieldCode
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);
}