You are here

public static function LanguageTypeResolver::isLocked in GraphQL 8

Same name and namespace in other branches
  1. 8.2 src/TypeResolver/LanguageTypeResolver.php \Drupal\graphql\TypeResolver\LanguageTypeResolver::isLocked()

Returns whether this language is locked.

Parameters

\Drupal\Core\TypedData\Plugin\DataType\Language: The language object.

Return value

bool Whether the language is locked or not.

File

src/TypeResolver/LanguageTypeResolver.php, line 152

Class

LanguageTypeResolver
Resolves the schema for the 'language' data type.

Namespace

Drupal\graphql\TypeResolver

Code

public static function isLocked(Language $language) {
  return $language
    ->getValue()
    ->isLocked();
}