class DevelDumper

Same name in this branch
  1. 5.x src/Annotation/DevelDumper.php \Drupal\devel\Annotation\DevelDumper
Same name and namespace in other branches
  1. 4.x src/Annotation/DevelDumper.php \Drupal\devel\Annotation\DevelDumper

Defines a DevelDumper attribute object.

Attributes

#[\Attribute(\Attribute::TARGET_CLASS)]

Hierarchy

Expanded class hierarchy of DevelDumper

See also

\Drupal\devel\DevelDumperPluginManager

\Drupal\devel\DevelDumperInterface

\Drupal\devel\DevelDumperBase

Plugin API

4 files declare their use of DevelDumper
AvailableTestDumper.php in tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/AvailableTestDumper.php
DevelDumperPluginManager.php in src/DevelDumperPluginManager.php
NotAvailableTestDumper.php in tests/modules/devel_dumper_test/src/Plugin/Devel/Dumper/NotAvailableTestDumper.php
VarDumper.php in src/Plugin/Devel/Dumper/VarDumper.php

File

src/Attribute/DevelDumper.php, line 16

Namespace

Drupal\devel\Attribute
View source
class DevelDumper extends Plugin {
  
  /**
   * Constructs a DevelDumper attribute.
   *
   * @param string $id
   *   The plugin ID.
   * @param \Drupal\Core\StringTranslation\TranslatableMarkup $label
   *   The human-readable name of the DevelDumper type.
   * @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $description
   *   (optional) A short description of the DevelDumper type.
   * @param class-string|null $deriver
   *   (optional) The deriver class.
   */
  public function __construct(public readonly string $id, public readonly TranslatableMarkup $label, public readonly ?TranslatableMarkup $description = NULL, public readonly ?string $deriver = NULL) {
  }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
AttributeBase::$class protected property The class used for this attribute class.
AttributeBase::$provider protected property The provider of the attribute class.
AttributeBase::get public function Gets the value of an attribute. Overrides AttributeInterface::get 6
AttributeBase::getClass public function Gets the class of the attribute class. Overrides AttributeInterface::getClass 1
AttributeBase::getId public function Gets the unique ID for this attribute class. Overrides AttributeInterface::getId
AttributeBase::getProvider public function Gets the name of the provider of the attribute class. Overrides AttributeInterface::getProvider
AttributeBase::setClass public function Sets the class of the attributed class. Overrides AttributeInterface::setClass 1
AttributeBase::setProvider public function Sets the name of the provider of the attribute class. Overrides AttributeInterface::setProvider
DevelDumper::__construct public function Constructs a DevelDumper attribute. Overrides Plugin::__construct