You are here

public function EntityQueueSmartQueueArgument::setArgument in Entityqueue 8

Set the input for this argument

Return value

TRUE if it successfully validates; FALSE if it does not.

Overrides ArgumentPluginBase::setArgument

File

modules/entityqueue_smartqueue/src/Plugin/views/argument/EntityQueueSmartQueueArgument.php, line 88

Class

EntityQueueSmartQueueArgument
Plugin annotation @ViewsArgument("entityqueue_smartqueue_name");

Namespace

Drupal\entityqueue_smartqueue\Plugin\views\argument

Code

public function setArgument($arg) {
  $queue = $this->options['smartqueue'];
  if (strpos($arg, $queue) !== 0) {
    $arg = $queue . '__' . $arg;
  }
  return parent::setArgument($arg);
}