PluginID.php

Same filename in this branch
  1. 11.x core/lib/Drupal/Component/Annotation/PluginID.php
Same filename in other branches
  1. 9 core/lib/Drupal/Component/Annotation/PluginID.php
  2. 8.9.x core/lib/Drupal/Component/Annotation/PluginID.php
  3. 10 core/lib/Drupal/Component/Annotation/PluginID.php
  4. 10 core/lib/Drupal/Component/Plugin/Attribute/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.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.