Pimcore\Model\Object\KeyValue\GroupConfig::getByName PHP Method

getByName() public static method

public static getByName ( $name ) : GroupConfig
$name
return GroupConfig
    public static function getByName($name)
    {
        try {
            $config = new self();
            $config->setName($name);
            $config->getDao()->getByName();
            return $config;
        } catch (\Exception $e) {
        }
    }

Usage Example

Example #1
0
 public function getgroupAction()
 {
     $id = $this->getParam("id");
     $config = KeyValue\GroupConfig::getByName($id);
     $data = ["id" => $id, "name" => $config->getName(), "description" => $config->getDescription()];
     $this->_helper->json($data);
 }
All Usage Examples Of Pimcore\Model\Object\KeyValue\GroupConfig::getByName