/** * {@inheritdoc} */ public function load() { $entities = array(); foreach (parent::load() as $entity) { $entities[$entity->getTargetType()][] = $entity; } return $entities; }
/** * {@inheritdoc} */ public function load() { $entities = parent::load(); foreach ($entities as $entity) { if ($entity->isConfigurable()) { $this->hasConfigurableActions = TRUE; continue; } } return $entities; }
/** * {@inheritdoc} */ public function load() { $entities = array('enabled' => array(), 'disabled' => array()); foreach (parent::load() as $entity) { if ($entity->status()) { $entities['enabled'][] = $entity; } else { $entities['disabled'][] = $entity; } } return $entities; }
/** * {@inheritdoc} */ public function load() { $entities = parent::load(); // Move the Global defaults to the top. return array('global' => $entities['global']) + $entities; }
/** * {@inheritdoc} */ public function load() { $entities = parent::load(); $this->sortByStatusThenAlphabetically($entities); return $entities; }