class OneToOneFormatter extends AbstractFormatter (View source)

Properties

protected $association from AbstractFormatter
protected $entryFormatter from AbstractFormatter

Methods

__construct(Association $association)

No description

getEntryDisplayName(AssociationControl $control, Entry $entry)

Get the display label for an entry

setEntryFormatter(EntryFormatterInterface $formatter)

Supploy the entry formatter we should use

getEntryFormatter()

Get the entry formatter to use

getDisplayName()

No description

getIcon()

No description

getTypeDisplayName()

No description

Details

__construct(Association $association)

Parameters

Association $association

getEntryDisplayName(AssociationControl $control, Entry $entry)

Get the display label for an entry

Parameters

AssociationControl $control
Entry $entry

setEntryFormatter(EntryFormatterInterface $formatter)

Supploy the entry formatter we should use

Parameters

EntryFormatterInterface $formatter

protected EntryFormatterInterface getEntryFormatter()

Get the entry formatter to use

getDisplayName()

getIcon()

getTypeDisplayName()