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

Breadcrumb

  1. Drupal Core 11.1.x

PluginID.php

Same filename in this branch
  1. 11.1.x core/lib/Drupal/Component/Annotation/PluginID.php

Namespace

Drupal\Component\Plugin\Attribute

File

core/lib/Drupal/Component/Plugin/Attribute/PluginID.php

View source
<?php

namespace Drupal\Component\Plugin\Attribute;


/**
 * Defines a Plugin attribute object that just contains an ID.
 */
class PluginID extends AttributeBase {
    
    /**
     * {@inheritdoc}
     */
    public function get() : array {
        return [
            'id' => $this->getId(),
            'class' => $this->getClass(),
            'provider' => $this->getProvider(),
        ];
    }

}

Classes

Title Deprecated Summary
PluginID Defines a Plugin attribute object that just contains an ID.

API Navigation

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