You are here

public function EntityConfigurationHandler::getIdentifiers in Configuration Management 7.3

Returns the configuration identifiers handled by this instance.

Return value

array An array of identifiers.

Overrides ConfigurationHandler::getIdentifiers

File

src/Handlers/EntityConfigurationHandler.php, line 21

Class

EntityConfigurationHandler

Namespace

Configuration\Handlers

Code

public function getIdentifiers() {
  $options = array();
  foreach ($this->configuration_manager
    ->drupal()
    ->entity_load_multiple_by_name($this
    ->getType(), FALSE) as $name => $entity) {
    $options[$name] = $this->configuration_manager
      ->drupal()
      ->entity_label($this
      ->getType(), $entity);
  }
  return $options;
}