eZ\Publish\Core\Repository\Values\ContentType\FieldDefinition::getDescription PHP Method

getDescription() public method

This method returns the name of the field in the given language.
public getDescription ( string $languageCode ) : string
$languageCode string
return string the description for the given language or null if none exists.
    public function getDescription($languageCode)
    {
        if (array_key_exists($languageCode, $this->descriptions)) {
            return $this->descriptions[$languageCode];
        }
        return null;
    }