You are here

public function TokenCustomType::id in Custom Tokens 8

Gets the identifier.

Return value

string|int|null The entity identifier, or NULL if the object does not yet have an identifier.

Overrides EntityBase::id

File

src/Entity/TokenCustomType.php, line 75

Class

TokenCustomType
Defines the Custom Token Type configuration entity.

Namespace

Drupal\token_custom\Entity

Code

public function id() {
  return $this->machineName;
}