You are here

public static function MobileNumberItem::booleanOptions in Mobile Number 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Field/FieldType/MobileNumberItem.php \Drupal\mobile_number\Plugin\Field\FieldType\MobileNumberItem::booleanOptions()

Boolean options for views. Because views' default boolean handler is ridiculous.

Return value

array Array of 0 => No, 1 => Yes. As it should be.

File

src/Plugin/Field/FieldType/MobileNumberItem.php, line 554

Class

MobileNumberItem
Plugin implementation of the 'mobile_number' field type.

Namespace

Drupal\mobile_number\Plugin\Field\FieldType

Code

public static function booleanOptions() {
  return [
    t('No'),
    t('Yes'),
  ];
}