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

getConstantValue() protected method

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