src/Model/Behavior/EnumBehavior.php
protected function _translate(array $list)
    {
        $domain = $this->getConfig('translationDomain');

        return array_map(function ($value) use ($domain) {
            return __d($domain, $value);
        }, $list);
    }
protected function _translate(array $list)
    {
        $domain = $this->getConfig('translationDomain');

        return array_map(function ($value) use ($domain) {
            return __d($domain, $value);
        }, $list);
    }
Translate list values.

@param array $list List.
@return array