Back to ActionButton class

Method removeState

public static
removeState
(int $value)
Remove a state by value name.
Parameters
  • int $value Remove state by this value.
Returns
  • static Return to support chaining.
Since
  • 4.0.0
Class: ActionButton
Project: Joomla

Method removeState - Source code

/**
 * Remove a state by value name.
 *
 * @param   integer  $value  Remove state by this value.
 *
 * @return  static  Return to support chaining.
 *
 * @since   4.0.0
 */
public function removeState(int $value) : self
{
    if (isset($this->states[$value])) {
        unset($this->states[$value]);
    }
    return $this;
}