Same name in this branch
  1. 10 core/lib/Drupal/Component/Annotation/PluginID.php \Drupal\Component\Annotation\PluginID
  2. 10 core/lib/Drupal/Component/Plugin/Attribute/PluginID.php \Drupal\Component\Plugin\Attribute\PluginID

Hierarchy

  • class \Drupal\Component\Plugin\Attribute\PluginID extends \Drupal\Component\Plugin\Attribute\AttributeBase

Expanded class hierarchy of PluginID

9 files declare their use of PluginID
MigratePluginManager.php in core/modules/migrate/src/Plugin/MigratePluginManager.php
NullIdMap.php in core/modules/migrate/src/Plugin/migrate/id_map/NullIdMap.php
Sql.php in core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
ViewsArea.php in core/modules/views/src/Attribute/ViewsArea.php
ViewsField.php in core/modules/views/src/Attribute/ViewsField.php

... See full list

File

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

Namespace

Drupal\Component\Plugin\Attribute
View source
class PluginID extends AttributeBase {

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

}

Members