tamper-8.x-1.x-dev/config/schema/tamper.schema.yml

config/schema/tamper.schema.yml
tamper.*:
  type: mapping
  label: 'Tamper plugin'

tamper.absolute_url:
  mapping:
    base_url_source:
      type: string
      label: 'Source'

tamper.aggregate:
  mapping:
    function:
      type: string
      label: 'Method of how to process multiple values into a single value'
    count:
      type: string
      label: 'Count mode'

tamper.convert_case:
  mapping:
    operation:
      type: string
      label: 'How to convert case'

tamper.convert_boolean:
  mapping:
    true_value:
      type: string
      label: 'Truth'
    false_value:
      type: string
      label: 'False'
    match_case:
      type: boolean
      label: 'Match case'
    no_match_value:
      type: ignore
      label: 'If no match'
      nullable: true

tamper.copy:
  mapping:
    to_from:
      type: string
      label: 'To or from'
    copy_source:
      type: string
      label: 'Source'

tamper.url_decode:
  mapping:
    method:
      type: string
      label: 'Decode method'

tamper.default_value:
  mapping:
    default_value:
      type: string
      label: 'Value'
    only_if_empty:
      type: boolean
      label: 'Only if empty'

tamper.encode:
  mapping:
    mode:
      type: string
      label: 'Serialization mode'

tamper.entity_finder:
  mapping:
    entity_type:
      type: string
      label: 'Entity type'
    bundle:
      type: string
      label: 'Bundle'
    field:
      type: string
      label: 'Field'
    column:
      type: string
      label: 'Column'

tamper.explode:
  mapping:
    separator:
      type: string
      label: 'String separator'
    limit:
      type: integer
      label: 'Limit'
      nullable: true

tamper.find_replace:
  mapping:
    find:
      type: string
      label: 'Text to find'
    replace:
      type: string
      label: 'Text to replace'
    case_sensitive:
      type: boolean
      label: 'Case sensitive'
    word_boundaries:
      type: boolean
      label: 'Respect word boundaries'
    whole:
      type: boolean
      label: 'Match whole word/phrase'

tamper.find_replace_multiline:
  mapping:
    find_replace:
      type: sequence
      label: 'Text to find and the replacements'
      sequence:
        type: string
    separator:
      type: string
      label: 'Search/replacement value separator'
    case_sensitive:
      type: boolean
      label: 'Case sensitive'
    word_boundaries:
      type: boolean
      label: 'Respect word boundaries'
    whole:
      type: boolean
      label: 'Match whole word/phrase'

tamper.find_replace_regex:
  mapping:
    find:
      type: string
      label: 'REGEX to find'
    replace:
      type: string
      label: 'Replacement pattern'
    limit:
      type: integer
      label: 'Limit number of replacements'
      nullable: true

tamper.hash:
  mapping:
    data_to_hash:
      type: string
      label: 'Data to hash'
    only_if_empty:
      type: boolean
      label: 'Only if empty'
    override:
      type: boolean
      label: 'Override set value'

tamper.implode:
  mapping:
    glue:
      type: string
      label: 'String glue'

tamper.keyword_filter:
  mapping:
    words:
      type: string
      label: 'Words or phrases to filter on'
    words_list:
      type: sequence
      label: 'Word list'
      sequence:
        type: string
        label: 'Word'
    word_boundaries:
      type: boolean
      label: 'Respect word boundaries'
    exact:
      type: boolean
      label: 'Exact'
    case_sensitive:
      type: boolean
      label: 'Case sensitive'
    invert:
      type: boolean
      label: 'Invert filter'

tamper.math:
  mapping:
    operation:
      type: string
      label: 'Operation'
    flip:
      type: boolean
      label: 'Flip'
    value:
      type: float
      label: 'Value'
    skip_on_nan:
      type: boolean
      label: 'Skip calculation when the data is not numeric'

tamper.number_format:
  mapping:
    decimals:
      type: integer
      label: 'Decimals'
    dec_point:
      type: string
      label: 'Decimal point'
    thousands_sep:
      type: string
      label: 'Thousands separator'

tamper.required:
  mapping:
    invert:
      type: boolean
      label: 'Invert filter'

tamper.rewrite:
  mapping:
    text:
      type: string
      label: 'Replacement pattern'

tamper.sprintf:
  mapping:
    format:
      type: string
      label: 'Format string'

tamper.str_pad:
  mapping:
    pad_length:
      type: integer
      label: 'Pad length'
    pad_string:
      type: string
      label: 'Pad string'
    pad_type:
      type: integer
      label: 'Pad type'

tamper.str_pos:
  mapping:
    substring:
      type: string
      label: 'String to search for position'

tamper.strip_tags:
  mapping:
    allowed_tags:
      type: string
      label: 'Allowed tags'

tamper.strtotime:
  mapping:
    date_format:
      type: string
      label: 'Custom date format'
    fallback:
      type: boolean
      label: 'Fallback to strtotime() if the date could not be parsed.'

tamper.trim:
  mapping:
    character:
      type: string
      label: 'Characters to trim'
    side:
      type: string
      label: 'Side'

tamper.timetodate:
  mapping:
    date_format:
      type: string
      label: 'Date format'

tamper.truncate_text:
  mapping:
    num_char:
      type: integer
      label: 'Number of characters'
    ellipses:
      type: boolean
      label: 'Ellipses'
    wordsafe:
      type: boolean
      label: 'Truncate on a word boundary'

tamper.twig:
  mapping:
    template:
      type: string
      label: 'Twig template'

tamper.url_encode:
  mapping:
    method:
      type: string
      label: 'Encode method'

tamper.word_count:
  mapping:
    limit:
      type: integer
      label: 'Limit'
      nullable: true

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc