class ManyToOneHelper (View source)

This many to one helper object is used on both arguments and filters.

This requires extensive documentation on how this class is to be used. For now, look at the arguments and filters that use it. Lots of stuff is just pass-through but there are definitely some interesting areas where they interact. Any handler that uses this can have the following possibly additional definition terms: - numeric: If true, treat this field as numeric, using %d instead of %s in queries.

Methods

__construct($handler)

No description

static 
defineOptions($options)

No description

buildOptionsForm($form, FormStateInterface $form_state)

No description

getField()

Get the field via formula or build it using alias and field name.

addTable($join = NULL, $alias = NULL)

Add a table to the query.

getJoin()

No description

summaryJoin()

Provide the proper join for summary queries. This is important in part because it will cooperate with other arguments if possible.

ensureMyTable()

Override ensureMyTable so we can control how this joins in.

placeholder()

Provides a unique placeholders for handlers.

addFilter()

No description

Details

__construct($handler)

No description

Parameters

$handler

static defineOptions($options)

No description

Parameters

$options

buildOptionsForm($form, FormStateInterface $form_state)

No description

Parameters

$form
FormStateInterface $form_state

getField()

Get the field via formula or build it using alias and field name.

Sometimes the handler might want us to use some kind of formula, so give it that option. If it wants us to do this, it must set $helper->formula = TRUE and implement handler->getFormula().

addTable($join = NULL, $alias = NULL)

Add a table to the query.

This is an advanced concept; not only does it add a new instance of the table, but it follows the relationship path all the way down to the relationship link point and adds that as a new relationship and then adds the table to the relationship, if necessary.

Parameters

$join
$alias

getJoin()

No description

summaryJoin()

Provide the proper join for summary queries. This is important in part because it will cooperate with other arguments if possible.

ensureMyTable()

Override ensureMyTable so we can control how this joins in.

The operator actually has influence over joining.

protected placeholder()

Provides a unique placeholders for handlers.

addFilter()

No description