src/Drupal/Core/Template/Attribute.php
public function removeAttribute() {
    $args = func_get_args();
    foreach ($args as $arg) {
      // Support arrays or multiple arguments.
      if (is_array($arg)) {
        foreach ($arg as $value) {
          unset($this->storage[$value]);
        }
      }
      else {
        unset($this->storage[$arg]);
      }
    }

    return $this;
  }
public function removeAttribute() {
    $args = func_get_args();
    foreach ($args as $arg) {
      // Support arrays or multiple arguments.
      if (is_array($arg)) {
        foreach ($arg as $value) {
          unset($this->storage[$value]);
        }
      }
      else {
        unset($this->storage[$arg]);
      }
    }

    return $this;
  }
public function removeAttribute ( ) { $ args = func_get_args ( ) ; foreach ( $ args as $ arg ) { // Support arrays or multiple arguments. if ( is_array ( $ arg ) ) { foreach ( $ arg as $ value ) { unset ( $ this -> storage [ $ value ] ) ; } } else { unset ( $ this -> storage [ $ arg ] ) ; } } return $ this ; }
Removes an attribute from an Attribute object.

@param string|array ...
Attributes to remove from the attribute array.

@return $this
Removes an attribute from an Attribute object .