Removes an attribute.
string $name:
mixed The removed value
Overrides AttributeBagInterface::remove
public function remove($name) {
  $retval = null;
  if (array_key_exists($name, $this->attributes)) {
    $retval = $this->attributes[$name];
    unset($this->attributes[$name]);
  }
  return $retval;
}