Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
Primary tabs
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 |
---|---|---|---|---|---|---|---|---|
InvalidArgumentException | class | PhpTuf\ComposerStager\API\Exception | vendor/ |
This exception is thrown when an argument doesn't satisfy validation rules. | 3 | |||
InvalidArgumentException | class | Symfony\Component\Routing\Exception | vendor/ |
4 | 3 | |||
InvalidArgumentException | class | Symfony\Component\Mailer\Exception | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 2 | 7 | ||
InvalidArgumentException | class | Psr\Log | vendor/ |
1 | 4 | |||
InvalidArgumentException | final class | SebastianBergmann\CodeCoverage | vendor/ |
1 | 5 | |||
InvalidArgumentException | class | Webmozart\Assert | vendor/ |
1 | ||||
InvalidArgumentException | class | SebastianBergmann\Diff | vendor/ |
2 | ||||
InvalidArgumentException | class | Prophecy\Exception | vendor/ |
1 | 12 | |||
InvalidArgumentException | class | Symfony\Component\Console\Exception | vendor/ |
@author Jérôme Tamarelle <jerome@tamarelle.net> | 3 | 32 | ||
InvalidArgumentException | final class | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | 27 | ||
InvalidArgumentException | class | Symfony\Component\String\Exception | vendor/ |
1 | 5 | |||
InvalidArgumentException | class | Ramsey\Uuid\Exception | vendor/ |
Thrown to indicate that the argument received is not valid | 1 | 20 | ||
InvalidArgumentException | class | JsonSchema\Exception | vendor/ |
Wrapper for the InvalidArgumentException | 3 | 5 | ||
InvalidArgumentException | abstract class | PHPUnit\Framework | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 4 | 5 | ||
InvalidArgumentException | final class | SebastianBergmann\Template | vendor/ |
1 | ||||
InvalidArgumentException | interface | Psr\Cache | vendor/ |
Exception interface for invalid cache arguments. | ||||
InvalidArgumentException | class | Symfony\Component\DependencyInjection\Exception | vendor/ |
Base InvalidArgumentException for Dependency Injection component. | 7 | 58 | ||
InvalidArgumentException | class | Symfony\Component\Lock\Exception | vendor/ |
@author Jérémy Derussé <jeremy@derusse.com> | 2 | 13 | ||
InvalidArgumentException | class | Ramsey\Collection\Exception | vendor/ |
Thrown to indicate an argument is not of the expected type. | 7 | |||
InvalidArgumentException | class | Symfony\Component\Process\Exception | vendor/ |
InvalidArgumentException for the Process Component. | 1 | 3 | ||
InvalidArgumentException | class | Symfony\Component\Validator\Exception | vendor/ |
Base InvalidArgumentException for the Validator component. | 2 | 14 | ||
InvalidArgumentException | class | Doctrine\Instantiator\Exception | vendor/ |
Exception for invalid arguments provided to the instantiator | 1 | |||
InvalidArgumentException | class | Symfony\Component\Mime\Exception | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 2 | 7 | ||
InvalidArgumentException | final class | GuzzleHttp\Exception | vendor/ |
1 | 2 | |||
InvalidArgumentException | class | Symfony\Component\Serializer\Exception | vendor/ |
InvalidArgumentException. | 2 | 35 | ||
InvalidArgumentException | class | Symfony\Component\Filesystem\Exception | vendor/ |
@author Christian Flothmann <christian.flothmann@sensiolabs.de> | 1 | 3 | ||
InvalidArgumentException | class | Symfony\Component\BrowserKit\Exception | vendor/ |
1 | 3 | |||
InvalidBytesException | class | Ramsey\Uuid\Exception | vendor/ |
Thrown to indicate that the bytes being operated on are invalid in some way | 1 | |||
InvalidCallbackError | final class | Revolt\EventLoop | vendor/ |
3 | ||||
InvalidCodeUnitException | final class | SebastianBergmann\CodeUnit | vendor/ |
1 | ||||
InvalidComponentDataException | class | Drupal\Core\Render\Component\Exception | core/ |
Raised when a component is rendering with invalid data. | 1 | |||
InvalidComponentException | class | Drupal\Core\Render\Component\Exception | core/ |
Custom exception for invalid components. | 5 | |||
InvalidConfigException | class | JsonSchema\Exception | vendor/ |
Wrapper for the ResourceNotFoundException | ||||
InvalidConfigException | final class | Drupal\Core\Recipe | core/ |
Thrown if config created or changed by a recipe fails validation. | 1 | |||
InvalidCookieDomain | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\InvalidCookieDomain class | ||||
InvalidCoordinates | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\InvalidCoordinates class | ||||
InvalidCoversTargetException | final class | PHPUnit\Framework | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
InvalidDataProviderException | final class | PHPUnit\Framework | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
InvalidDataTypeException | class | Drupal\Component\Serialization\Exception | core/ |
Exception thrown when a data type is invalid. | 1 | 14 | ||
InvalidDecoratedMethod | class | Drupal\Component\Plugin\Exception | core/ |
Thrown when a decorator's _call() method uses a method that does not exist. | ||||
InvalidDependencyException | final class | PHPUnit\Framework | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
InvalidDeriverException | class | Drupal\Component\Plugin\Exception | core/ |
Exception to be thrown if a plugin tries to use an invalid deriver. | 1 | |||
InvalidDirectoryException | final class | PHPUnit\Util | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
InvalidElementCoordinates | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\InvalidElementCoordinates class | ||||
InvalidElementState | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\InvalidElementState class | ||||
InvalidEmail | class | Egulias\EmailValidator\Result | vendor/ |
2 | 22 | |||
InvalidEmailException | class | PharIo\Manifest | vendor/ |
|||||
InvalidEntityException | final class | Drupal\Core\DefaultContent | core/ |
Thrown if an entity being imported has validation errors. | ||||
InvalidEventException | final class | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
InvalidJsonException | final class | PHPUnit\Util | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 |