ActiveRecord.php
public static function getSelectOptions($key = 'id', $value = 'title', $where = [])
    {
        $parents = self::find();
        if (!empty($where)) {
            $parents->where($where);
        }
        return \yii\helpers\ArrayHelper::map($parents->all(), $key, $value);
    }
public static function getSelectOptions($key = 'id', $value = 'title', $where = [])
    {
        $parents = self::find();
        if (!empty($where)) {
            $parents->where($where);
        }
        return \yii\helpers\ArrayHelper::map($parents->all(), $key, $value);
    }
Return basic select options for the record.
@param string $key
@param string $value
@param array $where
@return array