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

Breadcrumb

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

function MediaLibraryState::isValidHash

Validate a hash for the state object.

Parameters

string $hash: The hash to validate.

Return value

string The hashed parameters.

File

core/modules/media_library/src/MediaLibraryState.php, line 209

Class

MediaLibraryState
A value object for the media library state.

Namespace

Drupal\media_library

Code

public function isValidHash($hash) {
    return hash_equals($this->getHash(), $hash);
}
RSS feed
Powered by Drupal