eZ\Publish\Core\REST\Client\FieldTypeService::getFieldType PHP Method

getFieldType() public method

Returns the FieldType registered with the given identifier.
public getFieldType ( string $identifier ) : eZ\Publish\API\Repository\FieldType
$identifier string
return eZ\Publish\API\Repository\FieldType
    public function getFieldType($identifier)
    {
        if ($this->hasFieldType($identifier)) {
            return $this->fieldTypes[$identifier];
        }
        throw new Exceptions\NotFoundException(sprintf('FieldType with identifier "%s" not found.', $identifier));
    }