/** * 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"' : '') . '>'; }