Pimcore\Model\Asset::getType PHP Method

getType() public method

public getType ( ) : string
return string
    public function getType()
    {
        return $this->type;
    }

Usage Example

コード例 #1
0
ファイル: Manager.php プロジェクト: pimcore/pimcore
 /**
  * Loads the workflow into the manager
  * @throws \Exception
  */
 private function initWorkflow()
 {
     $config = Workflow\Config::getElementWorkflowConfig($this->element);
     $this->workflow = Workflow\Factory::getWorkflowFromConfig($config);
     if (!$this->workflow) {
         throw new \Exception("Cannot load workflow configuration for object [{$this->element->getId()}] of type [{$this->element->getType()}]");
     }
 }
All Usage Examples Of Pimcore\Model\Asset::getType