本文整理汇总了PHP中Drupal\Core\Config\Entity\ConfigEntityListBuilder::load方法的典型用法代码示例。如果您正苦于以下问题:PHP ConfigEntityListBuilder::load方法的具体用法?PHP ConfigEntityListBuilder::load怎么用?PHP ConfigEntityListBuilder::load使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Drupal\Core\Config\Entity\ConfigEntityListBuilder
的用法示例。
在下文中一共展示了ConfigEntityListBuilder::load方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: load
/**
* {@inheritdoc}
*/
public function load()
{
$entities = array();
foreach (parent::load() as $entity) {
$entities[$entity->getTargetType()][] = $entity;
}
return $entities;
}
示例2: load
/**
* {@inheritdoc}
*/
public function load()
{
$entities = parent::load();
foreach ($entities as $entity) {
if ($entity->isConfigurable()) {
$this->hasConfigurableActions = TRUE;
continue;
}
}
return $entities;
}
示例3: load
/**
* {@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;
}
示例4: load
/**
* {@inheritdoc}
*/
public function load()
{
$entities = parent::load();
// Move the Global defaults to the top.
return array('global' => $entities['global']) + $entities;
}
示例5: load
/**
* {@inheritdoc}
*/
public function load()
{
$entities = parent::load();
$this->sortByStatusThenAlphabetically($entities);
return $entities;
}