Back to CategoryFeedView class

Method reconcileNames

protected void
reconcileNames
(mixed $item)
Method to reconcile non standard names from components to usage in this class.
Parameters
  • object $item The item for a feed, an element of the $items array.
Returns
  • void
Since
  • 3.2

Method reconcileNames - Source code

/**
 * Method to reconcile non standard names from components to usage in this class.
 * Typically overridden in the component feed view class.
 *
 * @param   object  $item  The item for a feed, an element of the $items array.
 *
 * @return  void
 *
 * @since   3.2
 */
protected function reconcileNames($item)
{
    if (!property_exists($item, 'title') && property_exists($item, 'name')) {
        $item->title = $item->name;
    }
}