modules/acm/src/Element/AcmTitleSelect.php
public static function processAcmTitleSelect(array $element) {
    $element['#options'] = [
      'Mr' => t('Mr'),
      'Mrs' => t('Mrs'),
      'Ms' => t('Ms'),
      'Miss' => t('Miss'),
      'Dr' => t('Dr'),
      'Prof.' => t('Prof.'),
      'Brigadier' => t('Brigadier'),
      'Reverend' => t('Reverend'),
    ];
    return $element;
  }
public static function processAcmTitleSelect(array $element) {
    $element['#options'] = [
      'Mr' => t('Mr'),
      'Mrs' => t('Mrs'),
      'Ms' => t('Ms'),
      'Miss' => t('Miss'),
      'Dr' => t('Dr'),
      'Prof.' => t('Prof.'),
      'Brigadier' => t('Brigadier'),
      'Reverend' => t('Reverend'),
    ];
    return $element;
  }
public static function processAcmTitleSelect ( array $ element ) { $ element [ '#options' ] = [ 'Mr' => t ( 'Mr' ) , 'Mrs' => t ( 'Mrs' ) , 'Ms' => t ( 'Ms' ) , 'Miss' => t ( 'Miss' ) , 'Dr' => t ( 'Dr' ) , 'Prof.' => t ( 'Prof.' ) , 'Brigadier' => t ( 'Brigadier' ) , 'Reverend' => t ( 'Reverend' ) , ] ; return $ element ; }
Adds in an option list of applicable titles.

@param array $element
An associative array containing the properties of the element.
Properties used: #title, #value, #options, #description, #required,
#attributes, #id, #name, #type, #min, #max, #step, #value, #size. The
#name property will be sanitized before output. This is currently done by
initializing Drupal\Core\Template\Attribute with all the attributes.

@return array
The $element with prepared variables.
Adds in an option list of applicable titles .