Skip to content
Snippets Groups Projects

Ensure term name argument is not null

2 open threads

Merge request reports

Members who can merge are allowed to add commits.
Approval is optional
Code Quality is loading
Test summary results are being parsed
Ready to merge by members who can write to the target branch.
  • The source branch is 1039 commits behind the target branch.
  • 1 commit will be added to 11.x.
  • Source branch will not be deleted.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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 === '')) {
  • 63 63 * {@inheritdoc}
    64 64 */
    65 65 public function validateArgument($argument) {
    66 if ($this->options['transform']) {
    Please register or sign in to reply
    Loading