You are here

public function MarkdownUnexpectedValueException::getKey in Markdown 8.2

Retrieves the known key, if value is in an array or Traversable object.

Return value

string|int|null The known key, if any.

File

src/Exception/MarkdownUnexpectedValueException.php, line 74

Class

MarkdownUnexpectedValueException

Namespace

Drupal\markdown\Exception

Code

public function getKey() {
  return $this->key;
}