getType() 공개 메소드

Get type.
public getType ( ) : CollectionType
리턴 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';
 }