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
ファイル: Collection.php プロジェクト: Silwereth/sulu
 /**
  * @VirtualProperty
  * @SerializedName("locked")
  *
  * @return string
  */
 public function getLocked()
 {
     return !$this->entity->getType() || $this->entity->getType()->getKey() === 'collection.system';
 }