Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LogicalNotToken.php

function LogicalNotToken::scoreArgument

Scores 4 when preset token does not match the argument.

Parameters

mixed $argument:

Return value

false|int

Overrides TokenInterface::scoreArgument

File

vendor/phpspec/prophecy/src/Prophecy/Argument/Token/LogicalNotToken.php, line 39

Class

LogicalNotToken
Logical NOT token.

Namespace

Prophecy\Argument\Token

Code

public function scoreArgument($argument) {
    return false === $this->token
        ->scoreArgument($argument) ? 4 : false;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal