Pimcore\Model\Object\Classificationstore\CollectionConfig::getName PHP Method

getName() public method

public getName ( ) : string
return string
    public function getName()
    {
        return $this->name;
    }

Usage Example

 public function createCollectionAction()
 {
     $name = $this->getParam("name");
     $alreadyExist = false;
     $config = Classificationstore\CollectionConfig::getByName($name);
     if (!$config) {
         $config = new Classificationstore\CollectionConfig();
         $config->setName($name);
         $config->save();
     }
     $this->_helper->json(array("success" => !$alreadyExist, "id" => $config->getName()));
 }