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

Breadcrumb

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

function PluginID::get

Same name in this branch
  1. 11.1.x core/lib/Drupal/Component/Annotation/PluginID.php \Drupal\Component\Annotation\PluginID::get()

Overrides AttributeBase::get

File

core/lib/Drupal/Component/Plugin/Attribute/PluginID.php, line 14

Class

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

Namespace

Drupal\Component\Plugin\Attribute

Code

public function get() : array {
    return [
        'id' => $this->getId(),
        'class' => $this->getClass(),
        'provider' => $this->getProvider(),
    ];
}

API Navigation

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