Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Capable.php

interface Capable

Plugins which need to expose various implementations of the Composer Plugin Capabilities must have their declared Plugin class implementing this interface.

@api

Hierarchy

  • interface \Composer\Plugin\Capable

Expanded class hierarchy of Capable

All classes that implement Capable

1 file declares its use of Capable
Plugin.php in composer/Plugin/Scaffold/Plugin.php

File

vendor/composer/composer/src/Composer/Plugin/Capable.php, line 22

Namespace

Composer\Plugin
View source
interface Capable {
    
    /**
     * Method by which a Plugin announces its API implementations, through an array
     * with a special structure.
     *
     * The key must be a string, representing a fully qualified class/interface name
     * which Composer Plugin API exposes.
     * The value must be a string as well, representing the fully qualified class name
     * of the implementing class.
     *
     * @tutorial
     *
     * return array(
     *     'Composer\Plugin\Capability\CommandProvider' => 'My\CommandProvider',
     *     'Composer\Plugin\Capability\Validator'       => 'My\Validator',
     * );
     *
     * @return string[]
     */
    public function getCapabilities();

}

Members

Title Sort descending Modifiers Object type Summary Overrides
Capable::getCapabilities public function Method by which a Plugin announces its API implementations, through an array
with a special structure.
1

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal