Pimcore\Model\Object\ClassDefinition\CustomLayout::getId PHP Method

getId() public method

public getId ( ) : integer
return integer
    public function getId()
    {
        return $this->id;
    }

Usage Example

Example #1
0
 /**
  * Deletes object from database
  *
  * @return void
  */
 public function delete()
 {
     $this->db->delete("custom_layouts", $this->db->quoteInto("id = ?", $this->model->getId()));
     @unlink(PIMCORE_CUSTOMLAYOUT_DIRECTORY . "/custom_definition_" . $this->model->getId() . ".psf");
 }