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

getName() public method

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