You are here

public static function EntityImportStatus::getAvailablePolicies in Entity Share 8.3

Gets all implemented import policies.

Return value

array Keys are raw policy values, values are human-readable labels.

Overrides EntityImportStatusInterface::getAvailablePolicies

1 call to EntityImportStatus::getAvailablePolicies()
EntityImportStatusListBuilder::buildRow in modules/entity_share_client/src/EntityImportStatusListBuilder.php
Builds a row for an entity in the entity listing.

File

modules/entity_share_client/src/Entity/EntityImportStatus.php, line 121

Class

EntityImportStatus
Defines the entity_import_status entity class.

Namespace

Drupal\entity_share_client\Entity

Code

public static function getAvailablePolicies() {

  // @todo allow modules to register other policies.
  return [
    EntityImportStatusInterface::IMPORT_POLICY_DEFAULT => t('Default'),
  ];
}