getType() public method

Get type.
public getType ( ) : CollectionType
return CollectionType
示例#1
0
文件: Collection.php 项目: sulu/sulu
 /**
  * @VirtualProperty
  * @SerializedName("locked")
  *
  * @return string
  */
 public function getLocked()
 {
     return !$this->entity->getType() || $this->entity->getType()->getKey() === SystemCollectionManagerInterface::COLLECTION_TYPE;
 }
示例#2
0
 /**
  * @VirtualProperty
  * @SerializedName("locked")
  *
  * @return string
  */
 public function getLocked()
 {
     return !$this->entity->getType() || $this->entity->getType()->getKey() === 'collection.system';
 }