concrete/src/Express/Association/Formatter/AbstractFormatter.php
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();
    }
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();
    }
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 ( ) ; }
Get the display label for an entry
@param \Concrete\Core\Entity\Express\Control\AssociationControl $control
@param \Concrete\Core\Entity\Express\Entry $entry
@return null|string
Get the display label for an entry