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

Breadcrumb

  1. Drupal Core 11.1.x

Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

Introduction to classes

A lot of the PHP code in Drupal is object oriented (OO), making use of PHP classes, interfaces, and traits. See the Objected-oriented programming conventions for more information.

See also

Objected-oriented programming conventions

File

core/core.api.php, line 1518

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
ActiveLinkResponseFilter class Drupal\Core\EventSubscriber core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php Subscribes to filter HTML responses, to set attributes on active links.
ActiveTheme class Drupal\Core\Theme core/lib/Drupal/Core/Theme/ActiveTheme.php Defines a theme and its information needed at runtime. 1
ActiveWorkspaceCheck class Drupal\workspaces\Access core/modules/workspaces/src/Access/ActiveWorkspaceCheck.php Determines access to routes based on the presence of an active workspace. 2
ActualValueIsNotAnObjectException final class PHPUnit\Framework vendor/phpunit/phpunit/src/Framework/Exception/ObjectEquals/ActualValueIsNotAnObjectException.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
AddAnnotatedClassesToCachePass

since Symfony 7.1, to be removed in 8.0

class Symfony\Component\HttpKernel\DependencyInjection vendor/symfony/http-kernel/DependencyInjection/AddAnnotatedClassesToCachePass.php Sets the classes to compile in the cache for the container.
AddAutoMappingConfigurationPass class Symfony\Component\Validator\DependencyInjection vendor/symfony/validator/DependencyInjection/AddAutoMappingConfigurationPass.php Injects the automapping configuration as last argument of loaders tagged with the "validator.auto_mapper" tag.
AddBinary class Twig\Node\Expression\Binary vendor/twig/twig/src/Node/Expression/Binary/AddBinary.php 1
AddBlockForm class Drupal\layout_builder\Form core/modules/layout_builder/src/Form/AddBlockForm.php Provides a form to add a block. 1
AddConsoleCommandPass class Symfony\Component\Console\DependencyInjection vendor/symfony/console/DependencyInjection/AddConsoleCommandPass.php Registers console commands.
AddConstraintValidatorsPass class Symfony\Component\Validator\DependencyInjection vendor/symfony/validator/DependencyInjection/AddConstraintValidatorsPass.php @author Johannes M. Schmitt <schmittjoh@gmail.com> @author Robin Chalas <robin.chalas@gmail.com>
AddCssCommand class Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/AddCssCommand.php An AJAX command for adding css to the page via ajax.
AddEventAliasesPass class Symfony\Component\EventDispatcher\DependencyInjection vendor/symfony/event-dispatcher/DependencyInjection/AddEventAliasesPass.php This pass allows bundles to extend the list of event aliases.
AddExpressionLanguageProvidersPass class Symfony\Component\Routing\DependencyInjection vendor/symfony/routing/DependencyInjection/AddExpressionLanguageProvidersPass.php Registers the expression language providers.
AddFormBase abstract class Drupal\media_library\Form core/modules/media_library/src/Form/AddFormBase.php Provides a base class for creating media items from within the media library. 2
AddHandler class Drupal\views_ui\Form\Ajax core/modules/views_ui/src/Form/Ajax/AddHandler.php Provides a form for adding an item in the Views UI.
AddItemToToolbar final class Drupal\ckeditor5\Plugin\ConfigAction core/modules/ckeditor5/src/Plugin/ConfigAction/AddItemToToolbar.php
AddJsCommand class Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/AddJsCommand.php An AJAX command for adding JS to the page via AJAX.
AddMimeTypeGuesserPass class Symfony\Component\Mime\DependencyInjection vendor/symfony/mime/DependencyInjection/AddMimeTypeGuesserPass.php Registers custom mime types guessers.
AddModeration final class Drupal\content_moderation\Plugin\ConfigAction core/modules/content_moderation/src/Plugin/ConfigAction/AddModeration.php
AddModerationDeriver final class Drupal\content_moderation\Plugin\ConfigAction core/modules/content_moderation/src/Plugin/ConfigAction/AddModerationDeriver.php
AddNavigationBlock final class Drupal\navigation\Plugin\ConfigAction core/modules/navigation/src/Plugin/ConfigAction/AddNavigationBlock.php @internal This API is experimental.
AddRequestFormatsListener class Symfony\Component\HttpKernel\EventListener vendor/symfony/http-kernel/EventListener/AddRequestFormatsListener.php Adds configured formats to each request.
Address final class Symfony\Component\Mime vendor/symfony/mime/Address.php @author Fabien Potencier <fabien@symfony.com> 12
AddressEncoderException class Symfony\Component\Mime\Exception vendor/symfony/mime/Exception/AddressEncoderException.php @author Fabien Potencier <fabien@symfony.com> 1
AddressEncoderInterface interface Symfony\Component\Mime\Encoder vendor/symfony/mime/Encoder/AddressEncoderInterface.php @author Christian Schmidt 1
AddressLiteral class Egulias\EmailValidator\Warning vendor/egulias/email-validator/src/Warning/AddressLiteral.php 1
AddRoleUser class Drupal\user\Plugin\Action core/modules/user/src/Plugin/Action/AddRoleUser.php Adds a role to a user.
AddSectionController class Drupal\layout_builder\Controller core/modules/layout_builder/src/Controller/AddSectionController.php Defines a controller to add a new section.
AddToAllBundles final class Drupal\field\Plugin\ConfigAction core/modules/field/src/Plugin/ConfigAction/AddToAllBundles.php Adds a field to all bundles of its target entity type.
AddTrait trait Symfony\Component\Routing\Loader\Configurator\Traits vendor/symfony/routing/Loader/Configurator/Traits/AddTrait.php @author Nicolas Grekas <p@tchwork.com>
AddValidatorInitializersPass class Symfony\Component\Validator\DependencyInjection vendor/symfony/validator/DependencyInjection/AddValidatorInitializersPass.php @author Fabien Potencier <fabien@symfony.com> @author Robin Chalas <robin.chalas@gmail.com>
AdminAccountSwitcher final class Drupal\Core\DefaultContent core/lib/Drupal/Core/DefaultContent/AdminAccountSwitcher.php @internal This API is experimental.
AdminContext class Drupal\Core\Routing core/lib/Drupal/Core/Routing/AdminContext.php Provides a helper class to determine whether the route is an admin one. 4
AdminController class Drupal\system\Controller core/modules/system/src/Controller/AdminController.php Controller for admin section.
AdminDemoNegotiator class Drupal\block\Theme core/modules/block/src/Theme/AdminDemoNegotiator.php Negotiates the theme for the block admin demo page via the URL. 2
AdminHtmlRouteProvider class Drupal\Core\Entity\Routing core/lib/Drupal/Core/Entity/Routing/AdminHtmlRouteProvider.php Provides HTML routes for entities with administrative add/edit/delete pages. 2 6
AdminNegotiator class Drupal\user\Theme core/modules/user/src/Theme/AdminNegotiator.php Sets the active theme on admin pages. 2
AdminPathConfigEntityConverter class Drupal\Core\ParamConverter core/lib/Drupal/Core/ParamConverter/AdminPathConfigEntityConverter.php Makes sure the unmodified ConfigEntity is loaded on admin pages. 1 1
AdminPathConfigEntityConverter class Drupal\Core\ProxyClass\ParamConverter core/lib/Drupal/Core/ProxyClass/ParamConverter/AdminPathConfigEntityConverter.php Provides a proxy class for \Drupal\Core\ParamConverter\AdminPathConfigEntityConverter.
AdminRouteSubscriber class Drupal\system\EventSubscriber core/modules/system/src/EventSubscriber/AdminRouteSubscriber.php Adds the _admin_route option to each admin HTML route. 2
AdvancedNameConverterInterface

since Symfony 7.2, use NameConverterInterface instead

interface Symfony\Component\Serializer\NameConverter vendor/symfony/serializer/NameConverter/AdvancedNameConverterInterface.php Gives access to the class, the format and the context in the property name converters. 1
AdvancedSettingsForm class Drupal\views_ui\Form core/modules/views_ui/src/Form/AdvancedSettingsForm.php Form builder for the advanced admin settings page. 1
AdvisoriesConfigSubscriber class Drupal\system\EventSubscriber core/modules/system/src/EventSubscriber/AdvisoriesConfigSubscriber.php Defines a config subscriber for changes to 'system.advisories'. 2
AdvisoryProviderInterface interface Composer\Repository vendor/composer/composer/src/Composer/Repository/AdvisoryProviderInterface.php Repositories that allow fetching security advisory data 2
After final class PHPUnit\Metadata vendor/phpunit/phpunit/src/Metadata/After.php @psalm-immutable
After final class PHPUnit\Framework\Attributes vendor/phpunit/phpunit/src/Framework/Attributes/After.php @psalm-immutable 2
AfterClass final class PHPUnit\Metadata vendor/phpunit/phpunit/src/Metadata/AfterClass.php @psalm-immutable
AfterClass final class PHPUnit\Framework\Attributes vendor/phpunit/phpunit/src/Framework/Attributes/AfterClass.php @psalm-immutable 1
AfterCommand class Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/AfterCommand.php An AJAX command for calling the jQuery after() method.
AfterLastTestMethodCalled final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/AfterLastTestMethodCalled.php @psalm-immutable

Pagination

  • First page
  • Previous page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal