getId() public method

Get Id
public getId ( ) : integer
return integer
Esempio n. 1
0
 /**
  * Render Icon
  *
  * @param IterableInterface $iterator Document
  *
  * @return string
  */
 protected static function renderLink(IterableInterface $iterator)
 {
     $id = $iterator->getId();
     $isPublished = null;
     if (method_exists($iterator, 'isPublished')) {
         $isPublished = $iterator->isPublished();
     }
     return '<a ' . (!empty($id) ? 'id="' . $id . '" ' : '') . 'href="' . $iterator->getEditUrl() . '"' . ($isPublished === false ? ' class="not-published"' : '') . '>';
 }