ContentTitle

Implements \LocalizedContentAttributeInterface, \JsonSerializable

Class ContentTitle

This class represents the localized content title

category

System

package

Content

Methods

ContentTitle constructor

__construct(string $title, \LanguageCode $languageCode) 

Arguments

$title

string

Content title

$languageCode

\LanguageCode

Language code

Return the content title

content() : string

Response

string

Specify data which should be serialized to JSON

jsonSerialize() : mixed
link

https://php.net/manual/en/jsonserializable.jsonserialize.php

since 5.4.0

Response

mixed

data which can be serialized by json_encode, which is a value of any type other than a resource.

Return the language code

languageCode() : string

Response

string

Properties

Content title

title : string
var

Type(s)

string

Language code

languageCode : string
var

Type(s)

string