ProviderMetadata::toArray(): WordPressAiClientProvidersDTOProviderMetadataArrayShape

In this article

{@inheritDoc}

Return

WordPressAiClientProvidersDTOProviderMetadataArrayShape

Source

public function toArray(): array
{
    return [self::KEY_ID => $this->id, self::KEY_NAME => $this->name, self::KEY_DESCRIPTION => $this->description, self::KEY_TYPE => $this->type->value, self::KEY_CREDENTIALS_URL => $this->credentialsUrl, self::KEY_AUTHENTICATION_METHOD => $this->authenticationMethod ? $this->authenticationMethod->value : null, self::KEY_LOGO_PATH => $this->logoPath];
}

Changelog

VersionDescription
1.3.0Added logoPath to output.
1.2.0Added description to output.
0.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.