Search for class

  1. Search 7.x for class
  2. Search 9.5.x for class
  3. Search 8.9.x for class
  4. Search 11.x for class
  5. Other projects
Title Object type File name Summary
AttributeClassDiscoveryTest::testGetPluginNamespaces function core/tests/Drupal/Tests/Component/Plugin/Attribute/AttributeClassDiscoveryTest.php @covers ::__construct
@covers ::getPluginNamespaces
AttributeDiscoveryWithAnnotations::parseClass function core/lib/Drupal/Core/Plugin/Discovery/AttributeDiscoveryWithAnnotations.php Parses attributes from a class.
AttributeInterface::getClass function core/lib/Drupal/Component/Plugin/Attribute/AttributeInterface.php Gets the class of the attribute class.
AttributeInterface::setClass function core/lib/Drupal/Component/Plugin/Attribute/AttributeInterface.php Sets the class of the attributed class.
AttributeTest::assertClass function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Checks that the given CSS class is present in the given HTML snippet.
AttributeTest::assertNoClass function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Checks that the given CSS class is not present in the given HTML snippet.
AttributeTest::providerTestAttributeClassHelpers function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Provides tests data for testEscaping.
AttributeTest::testAddClasses function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests adding class attributes with the AttributeArray helper method.
@covers ::addClass
AttributeTest::testChainAddRemoveClasses function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests removing class attributes with the Attribute helper methods.
@covers ::removeClass
@covers ::addClass
AttributeTest::testHasClass function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests checking for class names with the Attribute method.
@covers ::hasClass
AttributeTest::testRemoveClasses function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests removing class attributes with the AttributeArray helper method.
@covers ::removeClass
AttributeTest::testTwigAddRemoveClasses function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Tests the twig calls to the Attribute.
@dataProvider providerTestAttributeClassHelpers
BarClass class core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/BarClass.php Stub class which acts as a service to test the container.
BarClass.php file core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/BarClass.php
BarClass::$baz property core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/BarClass.php Storage for a protected BazClass object.
BarClass::getBaz function core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/BarClass.php Getter for our BazClass object.
BarClass::setBaz function core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/BarClass.php Setter for our BazClass object.
BaseFieldOverride::getClass function core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php Returns the class used for creating the typed data object.
BaseFieldOverrideTest::getClassTestCases function core/tests/Drupal/KernelTests/Core/Field/Entity/BaseFieldOverrideTest.php Test cases for ::testGetClass.
BaseFieldOverrideTest::testGetClass function core/tests/Drupal/KernelTests/Core/Field/Entity/BaseFieldOverrideTest.php @covers ::getClass
BasicControllerClass class core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php A class containing all kind of different controller methods.
BasicControllerClass::exampleControllerMethod function core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php
BasicControllerClass::exampleControllerMethodWithArgument function core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php
BasicControllerClass::exampleControllerWithEntityNoUpcasting function core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php
BasicControllerClass::exampleControllerWithEntityUpcasting function core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php
BazClass class core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/BazClass.php Stub class which acts as a service dependency, to test the container.
BazClass.php file core/tests/Drupal/Tests/Core/DependencyInjection/Fixture/BazClass.php
BlockRebuildTest::setUpBeforeClass function core/modules/block/tests/src/Kernel/BlockRebuildTest.php
broken_class_with_missing_dependency service core/modules/system/tests/modules/error_service_test/error_service_test.services.yml Drupal\error_service_test\LonelyMonkeyClass
BrowserHtmlDebugTrait::$htmlOutputClassName property core/tests/Drupal/Tests/BrowserHtmlDebugTrait.php Class name for HTML output logging.
BrowserTestBase::$minkDefaultDriverClass property core/tests/Drupal/Tests/BrowserTestBase.php Mink class for the default driver to use.
BrowserTestBase::setUpBeforeClass function core/tests/Drupal/Tests/BrowserTestBase.php
BrowserTestBaseMockableClass class core/tests/Drupal/Tests/Core/Test/BrowserTestBaseTest.php A class extending BrowserTestBase for testing purposes.
BundleClassInheritanceException class core/lib/Drupal/Core/Entity/Exception/BundleClassInheritanceException.php Exception thrown if a bundle class does not extend the main entity class.
BundleClassInheritanceException.php file core/lib/Drupal/Core/Entity/Exception/BundleClassInheritanceException.php
BundleClassInheritanceException::__construct function core/lib/Drupal/Core/Entity/Exception/BundleClassInheritanceException.php Constructs a BundleClassInheritanceException.
BundleClassTest class core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php Tests entity bundle classes.
BundleClassTest.php file core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php
BundleClassTest::$modules property core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php Modules to install.
BundleClassTest::$storage property core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php The entity storage.
BundleClassTest::setUp function core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php
BundleClassTest::testAmbiguousBundleClassExceptionCreate function core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php Checks exception is thrown if two bundles share the same bundle class.
BundleClassTest::testAmbiguousBundleClassExceptionEntityTypeRepository function core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php Checks exception is thrown if two entity types share the same bundle class.
BundleClassTest::testBundleClassShouldExist function core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php Checks exception thrown if a bundle class doesn't exist.
BundleClassTest::testBundleClassShouldExtendEntityClass function core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php Checks exception thrown if a bundle class doesn't extend the entity class.
BundleClassTest::testEntityClassNotTakenFromActiveDefinitions function core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php Tests that a module can override an entity-type class.
BundleClassTest::testEntityNoBundleSubclass function core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php Tests making use of a custom bundle class for an entity without bundles.
BundleClassTest::testEntitySubclass function core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php Tests making use of a custom bundle class.
BundleClassTest::testNoAmbiguousBundleClassExceptionSharingEntityClass function core/tests/Drupal/KernelTests/Core/Entity/BundleClassTest.php Checks that no exception is thrown when two bundles share an entity class.
BundleEntityStorageInterface::getBundleFromClass function core/lib/Drupal/Core/Entity/BundleEntityStorageInterface.php Retrieves the bundle name for a provided class name.

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