public function getEntryDisplayName(AssociationControl $control, Entry $entry)
    {
        $formatter = $this->getEntryFormatter();
        $name = null;

        // Do we have a custom display mask? If so, we try to use that
        if ($mask = $control->getAssociationEntityLabelMask()) {
            $name = $formatter->format($mask, $entry);
        }

        $name = $entry->getLabel();

        if ($name = trim($name)) {
            return $name;
        }

        return $entry->getID();
    }