Back to FeaturedButton class

Method preprocess

protected void
preprocess
()
Configure this object.
Returns
  • void
Since
  • 4.0.0

Method preprocess - Source code

/**
 * Configure this object.
 *
 * @return  void
 *
 * @since  4.0.0
 */
protected function preprocess()
{
    $this->addState(0, 'featured', 'icon-unfeatured', Text::_('JGLOBAL_TOGGLE_FEATURED'), ['tip_title' => Text::_('JUNFEATURED')]);
    $this->addState(1, 'unfeatured', 'icon-color-featured icon-star', Text::_('JGLOBAL_TOGGLE_FEATURED'), ['tip_title' => Text::_('JFEATURED')]);
}