/**
  * {@inheritdoc}
  */
 public function convert($value, $definition, $name, array $defaults)
 {
     if (!empty($value)) {
         $results = EAGroupingMembersStorage::load(array('gmid' => $value), TRUE);
         if (!empty($results)) {
             return $results[0];
         }
     }
     return NULL;
 }
 /**
  * {@inheritdoc}
  */
 public function getQuestion()
 {
     $grouping = \Drupal::request()->get('grouping');
     $member = \Drupal::request()->get('member');
     $result = EAGroupingMembersStorage::load(array('gid' => $grouping->gid, 'pid' => $member->pid), TRUE);
     if (!empty($result)) {
         $entry = $result[0];
         return $this->t('Are you sure you want to cancel membership for @name?', array('@name' => implode(' ', array($entry->nickname, $entry->firstname, $entry->lastnames))));
     } else {
         return $this->t('Member not found');
     }
 }