Search for target

  1. Search 7.x for target
  2. Search 9.5.x for target
  3. Search 8.9.x for target
  4. Search 10.3.x for target
  5. Other projects
Title Object type File name Summary
AbstractOperation::scaffoldOverExistingTarget function composer/Plugin/Scaffold/Operations/AbstractOperation.php Determines what to do if operation is used at same path as a previous op.
AddModerationConfigActionTest::testActionOnlyTargetsWorkflows function core/modules/content_moderation/tests/src/Kernel/ConfigAction/AddModerationConfigActionTest.php
AnnotationExtendsAnnotationTargetAll class core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php
AnnotationTargetAll class core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetAll.php Plugin annotation
@Target("ALL");
AnnotationTargetAll.php file core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetAll.php
AnnotationTargetAll::$data property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetAll.php
AnnotationTargetAll::$name property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetAll.php
AnnotationTargetAll::$target property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetAll.php
AnnotationTargetAnnotation class core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetAnnotation.php Plugin annotation

@Target({ "ANNOTATION" })
AnnotationTargetAnnotation.php file core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetAnnotation.php
AnnotationTargetAnnotation::$data property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetAnnotation.php
AnnotationTargetAnnotation::$name property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetAnnotation.php
AnnotationTargetAnnotation::$target property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetAnnotation.php
AnnotationTargetClass class core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetClass.php Plugin annotation
@Target("CLASS");
AnnotationTargetClass.php file core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetClass.php
AnnotationTargetClass::$data property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetClass.php
AnnotationTargetClass::$name property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetClass.php
AnnotationTargetClass::$target property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetClass.php
AnnotationTargetPropertyMethod class core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetPropertyMethod.php Plugin annotation

@Target({ "METHOD", "PROPERTY" })
AnnotationTargetPropertyMethod.php file core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetPropertyMethod.php
AnnotationTargetPropertyMethod::$data property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetPropertyMethod.php
AnnotationTargetPropertyMethod::$name property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetPropertyMethod.php
AnnotationTargetPropertyMethod::$target property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationTargetPropertyMethod.php
AnnotationWithInvalidTargetDeclaration class core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php Plugin annotation
@Target("Foo");
AnnotationWithTargetEmpty class core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php @Target
AnnotationWithTargetSyntaxError class core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithTargetSyntaxError.php Plugin annotation

@Target(@)
AnnotationWithTargetSyntaxError.php file core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/AnnotationWithTargetSyntaxError.php
AppendOp::scaffoldOverExistingTarget function composer/Plugin/Scaffold/Operations/AppendOp.php Determines what to do if operation is used at same path as a previous op.
BaseFieldDefinition::getTargetBundle function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Gets the bundle the field is attached to.
BaseFieldDefinition::getTargetEntityTypeId function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Returns the ID of the entity type the field is attached to.
BaseFieldDefinition::setTargetBundle function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Sets the bundle this field is defined for.
BaseFieldDefinition::setTargetEntityTypeId function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Sets the ID of the type of the entity this field is attached to.
BaseFieldOverrideValidationTest::testTargetBundleMustExist function core/tests/Drupal/KernelTests/Core/Entity/BaseFieldOverrideValidationTest.php Tests that the target bundle of the field is checked.
ClassWithInvalidAnnotationTargetAtClass class core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtClass.php Plugin annotation
@AnnotationTargetPropertyMethod("Some data");
ClassWithInvalidAnnotationTargetAtClass.php file core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtClass.php
ClassWithInvalidAnnotationTargetAtClass::$foo property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtClass.php Plugin annotation
@AnnotationTargetPropertyMethod("Bar");
ClassWithInvalidAnnotationTargetAtMethod class core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtMethod.php Plugin annotation
@AnnotationTargetClass("Some data");
ClassWithInvalidAnnotationTargetAtMethod.php file core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtMethod.php
ClassWithInvalidAnnotationTargetAtMethod::functionName function core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtMethod.php Plugin annotation
@AnnotationTargetClass("functionName");
ClassWithInvalidAnnotationTargetAtProperty class core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtProperty.php Plugin annotation
@AnnotationTargetClass("Some data");
ClassWithInvalidAnnotationTargetAtProperty.php file core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtProperty.php
ClassWithInvalidAnnotationTargetAtProperty::$bar property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtProperty.php Plugin annotation
@AnnotationTargetAnnotation("Foo");
ClassWithInvalidAnnotationTargetAtProperty::$foo property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithInvalidAnnotationTargetAtProperty.php Plugin annotation
@AnnotationTargetClass("Bar");
ClassWithValidAnnotationTarget class core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithValidAnnotationTarget.php Plugin annotation
@AnnotationTargetClass("Some data");
ClassWithValidAnnotationTarget.php file core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithValidAnnotationTarget.php
ClassWithValidAnnotationTarget::$foo property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithValidAnnotationTarget.php Plugin annotation
@AnnotationTargetPropertyMethod("Some data");
ClassWithValidAnnotationTarget::$name property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithValidAnnotationTarget.php Plugin annotation

@AnnotationTargetAll("Some data",name="Some name")
ClassWithValidAnnotationTarget::$nested property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithValidAnnotationTarget.php Plugin annotation
@AnnotationTargetAll(@AnnotationTargetAnnotation);
ClassWithValidAnnotationTarget::someFunction function core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/ClassWithValidAnnotationTarget.php Plugin annotation

@AnnotationTargetPropertyMethod("Some data",name="Some name")
CommentBundlesTest::$targetEntityTypes property core/modules/comment/tests/src/Kernel/CommentBundlesTest.php Entity type ids to use for target_entity_type_id on comment bundles.

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