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

Breadcrumb

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

function TokenCollection::offsetGet

Throws

TokenCollectionException

File

vendor/theseer/tokenizer/src/TokenCollection.php, line 49

Class

TokenCollection

Namespace

TheSeer\Tokenizer

Code

public function offsetGet($offset) : Token {
    if (!$this->offsetExists($offset)) {
        throw new TokenCollectionException(\sprintf('No Token at offest %s', $offset));
    }
    return $this->tokens[$offset];
}

API Navigation

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