You are here

public function Flexiform::addElement in Flexiform 7

File

./flexiform.entity.inc, line 82
flexiform.entity.inc

Class

Flexiform
The class used for flexiform entities

Code

public function addElement($element) {
  $this->elements[$element
    ->getElementNamespace()] = $element
    ->toSettingsArray();
}