Model/Config/Source/Product/Gender.php (18 lines of code) (raw):
<?php
/**
* Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved
*/
namespace Facebook\BusinessExtension\Model\Config\Source\Product;
use Magento\Eav\Model\Entity\Attribute\Source\AbstractSource;
class Gender extends AbstractSource
{
/**
* Get all options
*
* @return array
*/
public function getAllOptions()
{
if ($this->_options === null) {
$this->_options = [
['value' => '', 'label' => __('Please Select')],
['value' => 'Male', 'label' => __('Male')],
['value' => 'Female', 'label' => __('Female')],
['value' => 'Unisex', 'label' => __('Unisex')],
];
}
return $this->_options;
}
}