/**
  * @inheritdoc
  */
 protected function findCurrent()
 {
     $alias = (string) Input::getAutoItem($this->getUrlKey(), false, true);
     if ('' === $alias) {
         return null;
     }
     /** @var PageModel $objPage */
     global $objPage;
     if (($calendars = FaqCategoryModel::findBy('jumpTo', $objPage->id)) === null) {
         return null;
     }
     return FaqModel::findPublishedByParentAndIdOrAlias($alias, $calendars->fetchEach('id'));
 }
 /**
  * Generate missing translation warning for faq child records.
  *
  * @param array $args
  * @param mixed $previousResult
  *
  * @return string
  */
 public function onFaqChildRecords(array $args, $previousResult = null)
 {
     $row = $args[0];
     $label = (string) $previousResult;
     $category = FaqCategoryModel::findByPk($row['pid']);
     if ($category->master && (!$row['languageMain'] || null === FaqModel::findByPk($row['languageMain']))) {
         return preg_replace('#</div>#', $this->generateLabelWithWarning('', 'position:absolute;top:6px') . '</div>', $label, 1);
     }
     return $label;
 }