eZ\Publish\Core\REST\Common\FieldTypeProcessor\PageProcessor::getConstantName PHP Method

getConstantName() protected method

protected getConstantName ( mixed $value ) : string
$value mixed
return string
    protected function getConstantName($value)
    {
        switch ($value) {
            case Base::ACTION_ADD:
                return 'ACTION_ADD';
            case Base::ACTION_MODIFY:
                return 'ACTION_MODIFY';
            case Base::ACTION_REMOVE:
                return 'ACTION_REMOVE';
        }
        return $value;
    }