Back to StateBehaviorTrait class

Method populateState

protected void
populateState
()
Method to auto-populate the state.
Returns
  • void
Since
  • 4.0.0
-
  • Calling getState in this method will result in recursion.

Method populateState - Source code

/**
 * Method to auto-populate the state.
 *
 * This method should only be called once per instantiation and is designed
 * to be called on the first call to the getState() method unless the
 * configuration flag to ignore the request is set.
 *
 * @return  void
 *
 * @note    Calling getState in this method will result in recursion.
 * @since   4.0.0
 */
protected function populateState()
{
}