Sulu\Bundle\CategoryBundle\Api\Category::getMeta PHP Метод

getMeta() публичный Метод

Returns the name of the Category dependent on the locale.
public getMeta ( ) : array
Результат array
    public function getMeta()
    {
        $arrReturn = [];
        if ($this->entity->getMeta() !== null) {
            foreach ($this->entity->getMeta() as $meta) {
                if (!$meta->getLocale() || $meta->getLocale() === $this->locale) {
                    array_push($arrReturn, ['id' => $meta->getId(), 'key' => $meta->getKey(), 'value' => $meta->getValue()]);
                }
            }
            return $arrReturn;
        }
        return;
    }