* @return array
* Returns the options of this handler/plugin.
*/
- protected function defineOptions() { return []; }
+ protected function defineOptions() {
+ return [];
+ }
/**
* Fills up the options of the plugin with defaults.
/**
* {@inheritdoc}
*/
- public function validateOptionsForm(&$form, FormStateInterface $form_state) { }
+ public function validateOptionsForm(&$form, FormStateInterface $form_state) {}
/**
* {@inheritdoc}
*/
- public function submitOptionsForm(&$form, FormStateInterface $form_state) { }
+ public function submitOptionsForm(&$form, FormStateInterface $form_state) {}
/**
* {@inheritdoc}
*/
- public function query() { }
+ public function query() {}
/**
* {@inheritdoc}
/**
* {@inheritdoc}
*/
- public function validate() { return []; }
+ public function validate() {
+ return [];
+ }
/**
* {@inheritdoc}
foreach ($tokens as $token => $replacement) {
// Twig wants a token replacement array stripped of curly-brackets.
// Some Views tokens come with curly-braces, others do not.
- //@todo: https://www.drupal.org/node/2544392
+ // @todo: https://www.drupal.org/node/2544392
if (strpos($token, '{{') !== FALSE) {
// Twig wants a token replacement array stripped of curly-brackets.
$token = trim(str_replace(['{{', '}}'], '', $token));