Skip to content

CRM Telephone Type Entity

Overview

The crm_telephone_type entity classifies telephone contact methods by kind (for example, mobile or fax). Context such as home or work remains on Method Detail.

Key Features

  • Configuration Entity: Lightweight, exportable configuration entity
  • Telephone-Only: Applies only to the telephone contact method bundle
  • Status Management: Can be enabled or disabled
  • Custom Types: Sites can add types such as landline or VoIP

Relationship to Contact Methods

Telephone crm_contact_method entities may reference a telephone type through the optional telephone_type field. Method detail remains optional and independent, so a number can be both "Home" and "Mobile".

Entity Structure

classDiagram
  class crm_telephone_type {
    +string id [PK]
    +string label
    +string description
    +bool status
  }

  class crm_contact_method {
    +int id [PK]
    +string type
    +string telephone_type --> crm_telephone_type.id
  }

  crm_contact_method }o--o| crm_telephone_type : "classified by"

Properties Reference

Property Type Required Description
id String Yes Machine name (e.g., "mobile", "fax")
label String Yes Human-readable label
description Text No Optional description
status Boolean No Whether the type is enabled (default: TRUE)

Default Telephone Types

Type ID Label
mobile Mobile
fax Fax
# config/install/crm.crm_telephone_type.mobile.yml
langcode: en
status: true
dependencies: {}
id: mobile
label: Mobile
description: ''

Administration

  • Collection: /admin/structure/crm/telephone-type
  • Permission: administer crm