public function Element::exchangeArray in Express 8
Exchange the array for another one.
Parameters
array|ArrayObject $data: New data.
Return value
array The old array.
Throws
\InvalidArgumentException When the passed data is not an array or an instance of ArrayObject.
Overrides ArrayObject::exchangeArray
File
- themes/
contrib/ bootstrap/ src/ Utility/ Element.php, line 299 - Contains \Drupal\bootstrap\Utility\Element.
Class
- Element
- Provides helper methods for Drupal render elements.
Namespace
Drupal\bootstrap\UtilityCode
public function exchangeArray($data) {
$old = parent::exchangeArray($data);
return $old;
}