You are here

public function ConfigOperationsProvider::getOperations in Payment 8.2

Gets plugin operations.

Parameters

string $plugin_id: The ID of the plugin the operations are for.

Return value

array[] An array with the same structure as \Drupal\Core\Entity\EntityListBuilderInterface::getOperations()' return value.

Overrides PluginOperationsProviderInterface::getOperations

File

src/Plugin/Payment/Status/ConfigOperationsProvider.php, line 59

Class

ConfigOperationsProvider
Provides payment status operations payment statuses based on config entities.

Namespace

Drupal\payment\Plugin\Payment\Status

Code

public function getOperations($plugin_id) {
  $entity_id = substr($plugin_id, 15);
  $entity = $this->paymentStatusStorage
    ->load($entity_id);
  return $this->paymentStatusListBuilder
    ->getOperations($entity);
}