Drupal Test Helpers module API documentation - release 1.3.1

LanguageDefaultStub extends LanguageDefault
in package

A stub of the Drupal's default ConfigurableLanguageManager class.

@package TestHelpers\DrupalServiceStubs

Table of Contents

Methods

__construct()  : mixed
{@inheritdoc}
set()  : mixed
{@inheritdoc}
stubSetByCode()  : mixed
Sets the new default language by the language code.

Methods

__construct()

{@inheritdoc}

public __construct([array<string|int, mixed> $values = NULL ]) : mixed
Parameters
$values : array<string|int, mixed> = NULL

set()

{@inheritdoc}

public set(LanguageInterface $language) : mixed
Parameters
$language : LanguageInterface

stubSetByCode()

Sets the new default language by the language code.

public stubSetByCode(mixed $code) : mixed
Parameters
$code : mixed

        
On this page

Search results