You are here

PluginOperationsProviderInterface.php in Plugin 8.2

Namespace

Drupal\plugin

File

src/PluginOperationsProviderInterface.php
View source
<?php

namespace Drupal\plugin;


/**
 * Defines a plugin operations provider.
 *
 * Classes may also implement any of the following interfaces:
 * - \Drupal\Core\DependencyInjection\ContainerInjectionInterface: implementing
 *   this interface requires classes to be instantiated through
 *   \Drupal\Core\DependencyInjection\ClassResolverInterface::getInstanceFromDefinition().
 */
interface PluginOperationsProviderInterface {

  /**
   * Gets plugin operations.
   *
   * @param string $plugin_id
   *   The ID of the plugin the operations are for.
   *
   * @return array[]
   *   An array with the same structure as
   *   \Drupal\Core\Entity\EntityListBuilderInterface::getOperations()' return
   *   value.
   */
  public function getOperations($plugin_id);

}

Interfaces

Namesort descending Description
PluginOperationsProviderInterface Defines a plugin operations provider.