*/
const RENDER_TEXT_PHASE_EMPTY = 2;
+ /**
+ * @var string
+ */
public $field_alias = 'unknown';
public $aliases = [];
],
];
-
// Get a list of the available fields and arguments for token replacement.
// Setup the tokens for fields.
$optgroup_arguments = (string) t('Arguments');
$optgroup_fields = (string) t('Fields');
foreach ($previous as $id => $label) {
- $options[$optgroup_fields]["{{ $id }}"] = substr(strrchr($label, ":"), 2 );
+ $options[$optgroup_fields]["{{ $id }}"] = substr(strrchr($label, ":"), 2);
}
// Add the field to the list of options.
- $options[$optgroup_fields]["{{ {$this->options['id']} }}"] = substr(strrchr($this->adminLabel(), ":"), 2 );
+ $options[$optgroup_fields]["{{ {$this->options['id']} }}"] = substr(strrchr($this->adminLabel(), ":"), 2);
foreach ($this->view->display_handler->getHandlers('argument') as $arg => $handler) {
$options[$optgroup_arguments]["{{ arguments.$arg }}"] = $this->t('@argument title', ['@argument' => $handler->adminLabel()]);
/**
* {@inheritdoc}
*/
- public function preRender(&$values) { }
+ public function preRender(&$values) {}
/**
* {@inheritdoc}
* field ID is terms, then the tokens might be {{ terms__tid }} and
* {{ terms__name }}.
*/
- protected function addSelfTokens(&$tokens, $item) { }
+ protected function addSelfTokens(&$tokens, $item) {}
/**
* Document any special tokens this field might use for itself.
*
* @see addSelfTokens()
*/
- protected function documentSelfTokens(&$tokens) { }
+ protected function documentSelfTokens(&$tokens) {}
/**
* {@inheritdoc}