Ensure term name argument is not null
2 open threads
2 open threads
Merge request reports
Activity
63 63 * {@inheritdoc} 64 64 */ 65 65 public function validateArgument($argument) { 66 if ($this->options['transform']) { 67 $argument = str_replace('-', ' ', $argument); 68 $this->argument->argument = $argument; 69 } 70 // If bundles is set then restrict the loaded terms to the given bundles. 71 if (!empty($this->options['bundles'])) { 72 $terms = $this->termStorage->loadByProperties(['name' => $argument, 'vid' => $this->options['bundles']]); 73 } 74 else { 75 $terms = $this->termStorage->loadByProperties(['name' => $argument]); 76 } 66 if (!($argument === NULL || $argument === '')) {
Please register or sign in to reply