private function evaluateContentCreateStruct(
        ContentCreateStruct $object,
        APILimitationValue $value
    ): ?bool {
        $languageCodes = $this->getAllLanguageCodesFromCreateStruct($object);

        // check if object contains only allowed language codes
        return empty(array_diff($languageCodes, $value->limitationValues))
            ? self::ACCESS_GRANTED
            : self::ACCESS_DENIED;
    }
private function evaluateContentCreateStruct(
        ContentCreateStruct $object,
        APILimitationValue $value
    ): ?bool {
        $languageCodes = $this->getAllLanguageCodesFromCreateStruct($object);

        // check if object contains only allowed language codes
        return empty(array_diff($languageCodes, $value->limitationValues))
            ? self::ACCESS_GRANTED
            : self::ACCESS_DENIED;
    }
private function evaluateContentCreateStruct ( ContentCreateStruct $ object , APILimitationValue $ value ) : ? bool { $ languageCodes = $ this -> getAllLanguageCodesFromCreateStruct ( $ object ) ; // check if object contains only allowed language codes return empty ( array_diff ( $ languageCodes , $ value -> limitationValues ) ) ? self :: ACCESS_GRANTED : self :: ACCESS_DENIED ; }
Evaluate language codes of allowed translations for ContentCreateStruct.

@param \eZ\Publish\API\Repository\Values\Content\ContentCreateStruct $object
@param \eZ\Publish\API\Repository\Values\User\Limitation $value

@return bool|null
Evaluate language codes of allowed translations for ContentCreateStruct .