Pimcore\Model\Document::getType PHP Метод

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

Returns the document type.
public getType ( ) : string
Результат string
    public function getType()
    {
        return $this->type;
    }

Usage Example

Пример #1
0
 /**
  * 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\Document::getType