You are here

public function FlexiformFormEntityManagerDefault::getEntities in Flexiform 7

Get the entities.

Return value

array An array of all the entities ready to be used in this form.

Overrides FlexiformFormEntityManagerInterface::getEntities

File

includes/flexiform.form_entity_manager.inc, line 216
Contains the default entity manager for flexiforms.

Class

FlexiformFormEntityManagerDefault
Class that manages entities in a flexiform.

Code

public function getEntities() {

  // If not all entities are prepared.
  if (count(array_filter($this->prepared)) != count($this->entitySettings)) {
    $this
      ->prepareEntities();
  }
  return $this->entities;
}