Back to LegacyComponent class

Method countItems

public void
countItems
(array $items, string $section)
Adds Count Items for Category Manager.
Parameters
  • \stdClass[] $items The category objects
  • string $section The section
Returns
  • void
Since
  • 4.0.0
-
  • \Exception

Method countItems - Source code

/**
 * Adds Count Items for Category Manager.
 *
 * @param   \stdClass[]  $items    The category objects
 * @param   string       $section  The section
 *
 * @return  void
 *
 * @since   4.0.0
 * @throws  \Exception
 */
public function countItems(array $items, string $section)
{
    $helper = $this->loadHelper();
    if (!$helper || !\is_callable(array($helper, 'countItems'))) {
        return;
    }
    $helper::countItems($items, $section);
}