protected function validateFieldDefinitionCreateStruct(FieldDefinitionCreateStruct $fieldDefinitionCreateStruct, SPIFieldType $fieldType)
    {
        $validationErrors = array();

        if ($fieldDefinitionCreateStruct->isSearchable && !$fieldType->isSearchable()) {
            $validationErrors[] = new ValidationError(
                "FieldType '{$fieldDefinitionCreateStruct->fieldTypeIdentifier}' is not searchable"
            );
        }

        return array_merge(
            $validationErrors,
            $fieldType->validateValidatorConfiguration($fieldDefinitionCreateStruct->validatorConfiguration),
            $fieldType->validateFieldSettings($fieldDefinitionCreateStruct->fieldSettings)
        );
    }
protected function validateFieldDefinitionCreateStruct(FieldDefinitionCreateStruct $fieldDefinitionCreateStruct, SPIFieldType $fieldType)
    {
        $validationErrors = array();

        if ($fieldDefinitionCreateStruct->isSearchable && !$fieldType->isSearchable()) {
            $validationErrors[] = new ValidationError(
                "FieldType '{$fieldDefinitionCreateStruct->fieldTypeIdentifier}' is not searchable"
            );
        }

        return array_merge(
            $validationErrors,
            $fieldType->validateValidatorConfiguration($fieldDefinitionCreateStruct->validatorConfiguration),
            $fieldType->validateFieldSettings($fieldDefinitionCreateStruct->fieldSettings)
        );
    }
protected function validateFieldDefinitionCreateStruct ( FieldDefinitionCreateStruct $ fieldDefinitionCreateStruct , SPIFieldType $ fieldType ) { $ validationErrors = array ( ) ; if ( $ fieldDefinitionCreateStruct -> isSearchable && ! $ fieldType -> isSearchable ( ) ) { $ validationErrors [ ] = new ValidationError ( "FieldType '{$fieldDefinitionCreateStruct->fieldTypeIdentifier}' is not searchable" ) ; } return array_merge ( $ validationErrors , $ fieldType -> validateValidatorConfiguration ( $ fieldDefinitionCreateStruct -> validatorConfiguration ) , $ fieldType -> validateFieldSettings ( $ fieldDefinitionCreateStruct -> fieldSettings ) ) ; }
Validates FieldDefinitionCreateStruct.

@param \eZ\Publish\API\Repository\Values\ContentType\FieldDefinitionCreateStruct $fieldDefinitionCreateStruct
@param \eZ\Publish\SPI\FieldType\FieldType $fieldType

@return \eZ\Publish\SPI\FieldType\ValidationError[]
Validates FieldDefinitionCreateStruct .